mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 10:18:40 +12:00
Optimize SPU interpreter
Made SPU decoder similar to PPU decoder
This commit is contained in:
parent
53f8b03acc
commit
445b7c0758
5 changed files with 797 additions and 528 deletions
|
@ -340,18 +340,13 @@ void spu_recompiler::InterpreterCall(spu_opcode_t op)
|
|||
{
|
||||
// TODO: check correctness
|
||||
|
||||
const u32 old_pc = _spu->pc;
|
||||
|
||||
if (test(_spu->state) && _spu->check_state())
|
||||
{
|
||||
return 0x2000000 | _spu->pc;
|
||||
}
|
||||
|
||||
_func(*_spu, { opcode });
|
||||
|
||||
if (old_pc != _spu->pc)
|
||||
if (UNLIKELY(!_func(*_spu, {opcode})))
|
||||
{
|
||||
_spu->pc += 4;
|
||||
return 0x2000000 | _spu->pc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue