From c9cd0b626bff53c3c81df34989b34e6ebef23861 Mon Sep 17 00:00:00 2001 From: Rairii <2650838+Wack0@users.noreply.github.com> Date: Fri, 27 Oct 2023 13:27:36 +0100 Subject: [PATCH] JIT64: for twx instruction, raise exception with correct SRR0 --- Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp index c8c1ede1d0..593b7ab430 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp @@ -2752,6 +2752,7 @@ void Jit64::twX(UGeckoInstruction inst) gpr.Flush(); fpr.Flush(); + MOV(32, PPCSTATE(pc), Imm32(js.compilerPC)); WriteExceptionExit(); SwitchToNearCode();