PPU: HACK instruction removed

Breakpoints fixed
This commit is contained in:
Nekotekina 2017-03-22 23:23:47 +03:00
parent ddd6ebc58d
commit 3bfe17a14f
20 changed files with 155 additions and 379 deletions

View file

@ -2381,8 +2381,17 @@ std::vector<ppu_function_t>& ppu_function_manager::access()
{
static std::vector<ppu_function_t> list
{
nullptr,
[](ppu_thread& ppu) { ppu.state += cpu_flag::ret; },
[](ppu_thread& ppu) -> bool
{
LOG_ERROR(PPU, "Unregistered function called (LR=0x%x)", ppu.lr);
ppu.gpr[3] = 0;
return true;
},
[](ppu_thread& ppu) -> bool
{
ppu.state += cpu_flag::ret;
return true;
},
};
return list;
@ -2396,3 +2405,5 @@ u32 ppu_function_manager::add_function(ppu_function_t function)
return ::size32(list) - 1;
}
DECLARE(ppu_function_manager::addr);