CPU/Recompiler: Decode ARM32 load exceptions from r0

Negate the low half of the checked-read error return so address and bus errors retain their correct exception codes.
This commit is contained in:
Stenzek
2026-10-10 21:47:42 +10:00
parent 6db5f053d9
commit beb75d1dec
+1 -1
View File
@@ -1770,7 +1770,7 @@ vixl::aarch32::Register CPU::ARM32Recompiler::GenerateLoad(const vixl::aarch32::
// Need to stash this in a temp because of the flush.
const Register temp = Register(AllocateTempHostReg(HR_CALLEE_SAVED));
armAsm->rsb(temp, RRETHI, 0);
armAsm->rsb(temp, RRET, 0);
armAsm->lsl(temp, temp, 2);
Flush(FLUSH_FOR_C_CALL | FLUSH_FLUSH_MIPS_REGISTERS | FLUSH_FOR_EXCEPTION);