summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-03-12 20:31:10 +0100
committerAdmiral H. Curtiss <pikachu025@gmail.com>2023-03-28 03:47:51 +0200
commit8dabd1a0256e4761ad88494280d74397e16af9f5 (patch)
tree1b4aeaa06eb6339146a5ab63660e8482b5d18997 /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
parent012044eb64afd1551e76440f760ce92e36d3f92c (diff)
PowerPC/MMU: Refactor to class, move to System.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp5
1 files changed, 3 insertions, 2 deletions
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;