From 53b86b1a602dbebe653942412b3e0d3fead6f9a4 Mon Sep 17 00:00:00 2001 From: SimoneN64 Date: Thu, 7 Sep 2023 14:57:09 +0200 Subject: [PATCH] Exceptions *do* take some cycles, at least 1 for now --- src/backend/core/Interpreter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/core/Interpreter.cpp b/src/backend/core/Interpreter.cpp index 7cf74e85..9ea28563 100644 --- a/src/backend/core/Interpreter.cpp +++ b/src/backend/core/Interpreter.cpp @@ -11,14 +11,14 @@ int Interpreter::Step() { if(!MapVAddr(regs, LOAD, regs.pc, paddr)) { HandleTLBException(regs, regs.pc); FireException(regs, GetTLBExceptionCode(regs.cop0.tlbError, LOAD), 0, false); - return 0; + return 1; } u32 instruction = mem.Read32(regs, paddr); if(ShouldServiceInterrupt()) { FireException(regs, ExceptionCode::Interrupt, 0, false); - return 0; + return 1; } regs.oldPC = regs.pc;