From 8dabd1a0256e4761ad88494280d74397e16af9f5 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sun, 12 Mar 2023 20:31:10 +0100 Subject: PowerPC/MMU: Refactor to class, move to System. --- Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp') diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index e4073fb16a..f954f57ccc 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -987,10 +987,11 @@ void CodeViewWidget::OnReplaceInstruction() const u32 addr = GetContextAddress(); - if (!PowerPC::HostIsInstructionRAMAddress(guard, addr)) + if (!PowerPC::MMU::HostIsInstructionRAMAddress(guard, addr)) return; - const PowerPC::TryReadInstResult read_result = PowerPC::TryReadInstruction(addr); + const PowerPC::TryReadInstResult read_result = + guard.GetSystem().GetMMU().TryReadInstruction(addr); if (!read_result.valid) return; -- cgit v1.2.3