summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2023-04-01 18:02:04 +0200
committerGitHub <noreply@github.com>2023-04-01 18:02:04 +0200
commit450ca0b69ea70f56e25670040f1dfdc01bf52ba9 (patch)
tree061833f63b86e19169024afd9ca8179ecaff066f /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
parent7e9a63b9873d56f0a2c1b814a04437374621fb24 (diff)
parent8dabd1a0256e4761ad88494280d74397e16af9f5 (diff)
Merge pull request #11700 from AdmiralCurtiss/mmu-class
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;