From 22b300336af8e8d3058af3aed7cdebd4cad785fa Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Wed, 24 Feb 2021 18:30:31 +0100 Subject: [PATCH] Core/MemoryWatcher: Use appropriate memory read function in ChasePointer(). --- Source/Core/Core/MemoryWatcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/MemoryWatcher.cpp b/Source/Core/Core/MemoryWatcher.cpp index e90445143d..491ecd8315 100644 --- a/Source/Core/Core/MemoryWatcher.cpp +++ b/Source/Core/Core/MemoryWatcher.cpp @@ -8,9 +8,9 @@ #include #include "Common/FileUtil.h" -#include "Core/HW/Memmap.h" #include "Core/HW/SystemTimers.h" #include "Core/MemoryWatcher.h" +#include "Core/PowerPC/MMU.h" MemoryWatcher::MemoryWatcher() { @@ -71,7 +71,7 @@ u32 MemoryWatcher::ChasePointer(const std::string& line) u32 value = 0; for (u32 offset : m_addresses[line]) { - value = Memory::Read_U32(value + offset); + value = PowerPC::HostRead_U32(value + offset); if (!PowerPC::HostIsRAMAddress(value)) break; }