From cc7aa730816ddfac5a88c3acea2c581b28358c75 Mon Sep 17 00:00:00 2001 From: aldelaro5 Date: Tue, 23 Aug 2016 00:43:09 -0400 Subject: [PATCH] Invalidate the icache when inserting a nop or BLR Also schedule an event to invalidate it if the emu thread is running. --- Source/Core/Core/Debugger/PPCDebugInterface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Core/Debugger/PPCDebugInterface.cpp b/Source/Core/Core/Debugger/PPCDebugInterface.cpp index 4356c27d9f..b9a4a2f03d 100644 --- a/Source/Core/Core/Debugger/PPCDebugInterface.cpp +++ b/Source/Core/Core/Debugger/PPCDebugInterface.cpp @@ -163,6 +163,7 @@ void PPCDebugInterface::ToggleMemCheck(unsigned int address) void PPCDebugInterface::InsertBLR(unsigned int address, unsigned int value) { PowerPC::HostWrite_U32(value, address); + PowerPC::ScheduleInvalidateCacheThreadSafe(address); } // =======================================================