From 1c55af9c182943df08731e6128b571826bd3bcc4 Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Sun, 4 Sep 2022 19:59:13 -0600 Subject: [PATCH] update parallel rsp --- parallel-rsp/parallel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/parallel-rsp/parallel.cpp b/parallel-rsp/parallel.cpp index e46c564..396361e 100644 --- a/parallel-rsp/parallel.cpp +++ b/parallel-rsp/parallel.cpp @@ -78,12 +78,14 @@ extern "C" { // We don't know if Mupen from the outside invalidated our IMEM. if (first_run) + { + RSP::cpu.get_state().last_instruction_type = RSP::VU_INSTRUCTION; RSP::cpu.invalidate_imem(); + } // Run CPU until we either break or we need to fire an IRQ. RSP::cpu.get_state().pc = *RSP::rsp.SP_PC_REG & 0xfff; RSP::cpu.get_state().instruction_count = 0; - RSP::cpu.get_state().last_instruction_type = RSP::VU_INSTRUCTION; #ifdef INTENSE_DEBUG fprintf(stderr, "RUN TASK: %u\n", RSP::cpu.get_state().pc);