Exceptions *do* take some cycles, at least 1 for now

This commit is contained in:
SimoneN64
2023-09-07 14:57:09 +02:00
parent 844776904a
commit 53b86b1a60

View File

@@ -11,14 +11,14 @@ int Interpreter::Step() {
if(!MapVAddr(regs, LOAD, regs.pc, paddr)) { if(!MapVAddr(regs, LOAD, regs.pc, paddr)) {
HandleTLBException(regs, regs.pc); HandleTLBException(regs, regs.pc);
FireException(regs, GetTLBExceptionCode(regs.cop0.tlbError, LOAD), 0, false); FireException(regs, GetTLBExceptionCode(regs.cop0.tlbError, LOAD), 0, false);
return 0; return 1;
} }
u32 instruction = mem.Read32(regs, paddr); u32 instruction = mem.Read32(regs, paddr);
if(ShouldServiceInterrupt()) { if(ShouldServiceInterrupt()) {
FireException(regs, ExceptionCode::Interrupt, 0, false); FireException(regs, ExceptionCode::Interrupt, 0, false);
return 0; return 1;
} }
regs.oldPC = regs.pc; regs.oldPC = regs.pc;