SPU interpreter (basic concept)

This commit is contained in:
Nekotekina 2015-03-20 19:53:54 +03:00
parent 620e937473
commit 63276a3f84
7 changed files with 1552 additions and 18 deletions

View file

@ -569,7 +569,7 @@ void PPUThread::DoRun()
{
m_dec = nullptr;
switch(Ini.CPUDecoderMode.GetValue())
switch (auto mode = Ini.CPUDecoderMode.GetValue())
{
case 0: // original interpreter
{
@ -598,9 +598,11 @@ void PPUThread::DoRun()
//case 3: m_dec = new PPURecompiler(*this); break;
default:
LOG_ERROR(PPU, "Invalid CPU decoder mode: %d", Ini.CPUDecoderMode.GetValue());
{
LOG_ERROR(PPU, "Invalid CPU decoder mode: %d", mode);
Emu.Pause();
}
}
}
void PPUThread::DoResume()