Initial commit

This commit is contained in:
Nekotekina 2015-03-16 21:44:49 +03:00
parent b5a4e21c81
commit 6a0ce1850a
4 changed files with 24 additions and 15 deletions

View file

@ -94,18 +94,21 @@ void PPUThread::CloseStack()
void PPUThread::DoRun()
{
m_dec = nullptr;
switch(Ini.CPUDecoderMode.GetValue())
{
case 0:
//m_dec = new PPUDecoder(*new PPUDisAsm());
break;
case 1:
case 0: // original interpreter
{
auto ppui = new PPUInterpreter(*this);
m_dec = new PPUDecoder(ppui);
break;
}
case 1: // alternative interpreter
{
break;
}
break;
case 2:
#ifdef PPU_LLVM_RECOMPILER
@ -217,10 +220,14 @@ void PPUThread::Task()
{
custom_task(*this);
}
else
else if (m_dec)
{
CPUThread::Task();
}
else
{
}
}
ppu_thread::ppu_thread(u32 entry, const std::string& name, u32 stack_size, u32 prio)