Log which address was invalidated

This commit is contained in:
vyuuui 2022-10-27 22:49:23 -07:00
parent 55330bfebb
commit ad4cbe9b5d

View File

@ -2,6 +2,7 @@
#include "Core/PrimeHack/AddressDB.h" #include "Core/PrimeHack/AddressDB.h"
#include "Core/PrimeHack/HackManager.h" #include "Core/PrimeHack/HackManager.h"
#include "Common/Logging/Log.h"
#include "Core/PowerPC/MMU.h" #include "Core/PowerPC/MMU.h"
@ -23,6 +24,7 @@ void PrimeMod::apply_instruction_changes(bool invalidate) {
for (CodeChange const& change : active_changes) { for (CodeChange const& change : active_changes) {
PowerPC::HostWrite_U32(change.var, change.address); PowerPC::HostWrite_U32(change.var, change.address);
if (invalidate) { if (invalidate) {
WARN_LOG_FMT(POWERPC, "Invalidating the address {:#x}", change.address);
PowerPC::ScheduleInvalidateCacheThreadSafe(change.address); PowerPC::ScheduleInvalidateCacheThreadSafe(change.address);
} }
} }