CPU/Recompiler: Detect move instructions and forward to PGXP

Fixes holes in polygons in Gran Turismo 1 + 2 with PGXP enabled.
This commit is contained in:
Connor McLaughlin
2020-10-04 22:13:33 +10:00
parent 0b858658ca
commit 8a91395566
3 changed files with 18 additions and 0 deletions

View File

@ -870,6 +870,13 @@ void CPU_SW(u32 instr, u32 rtVal, u32 addr)
WriteMem(&CPU_reg[rt(instr)], addr);
}
void CPU_MOVE(u32 rd_and_rs, u32 rsVal)
{
const u32 Rs = (rd_and_rs & 0xFFu);
Validate(&CPU_reg[Rs], rsVal);
CPU_reg[(rd_and_rs >> 8)] = CPU_reg[Rs];
}
void CPU_ADDI(u32 instr, u32 rtVal, u32 rsVal)
{
// Rt = Rs + Imm (signed)