fix Interpreter::LL

This commit is contained in:
SimoneN64
2023-08-12 15:41:43 +02:00
parent f4c58a4b1d
commit 9992d216c5

View File

@@ -256,16 +256,17 @@ void Interpreter::ll(u32 instr) {
HandleTLBException(regs, address);
FireException(regs, GetTLBExceptionCode(regs.cop0.tlbError, LOAD), 0, true);
} else {
s32 result = mem.Read32(regs, physical);
if ((address & 0b11) > 0) {
FireException(regs, ExceptionCode::AddressErrorLoad, 0, true);
return;
} else {
regs.gpr[RT(instr)] = (s32)mem.Read32(regs, physical);
}
}
regs.gpr[RT(instr)] = result;
regs.cop0.llbit = true;
regs.cop0.LLAddr = physical >> 4;
regs.cop0.llbit = true;
regs.cop0.LLAddr = physical >> 4;
}
}
void Interpreter::lwl(u32 instr) {