From 15efd42eba99558569a41e9088aba32371c8d99a Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 27 Jan 2018 22:32:57 +1000 Subject: [PATCH] Jit64: Don't flush PC in exception block These blocks can only be executed as a result of a DSI exception from a loadstore, where we now flush the PC register prior to the loadstore. --- Source/Core/Core/PowerPC/Jit64/Jit.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/PowerPC/Jit64/Jit.cpp index facfe820e5..6b3ce7eda0 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit.cpp @@ -923,10 +923,6 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer* code_buf, JitBloc fprToFlush[js.revertFprLoad] = false; gpr.Flush(RegCache::FlushMode::MaintainState, gprToFlush); fpr.Flush(RegCache::FlushMode::MaintainState, fprToFlush); - - // If a memory exception occurs, the exception handler will read - // from PC. Update PC with the latest value in case that happens. - MOV(32, PPCSTATE(pc), Imm32(ops[i].address)); WriteExceptionExit(); SwitchToNearCode(); }