summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/CodeWindow.cpp
diff options
context:
space:
mode:
authormagumagu <magumagu9@gmail.com>2015-02-11 17:04:12 -0800
committermagumagu <magumagu9@gmail.com>2015-02-11 17:04:12 -0800
commit0e0a196a1c3aefc3cd163de8d9e5636f4353a741 (patch)
treed632f6eaa7e5ed6f571c16f95a1caf6b477a6ae5 /Source/Core/DolphinWX/Debugger/CodeWindow.cpp
parentb7e455ece8dfef9a553b7685106626a6ca0d0877 (diff)
parent4193350d226f5ca2d2d6630154b34b478bbedec9 (diff)
Merge pull request #1856 from magumagu/correct-translation-disable-2
Make address translation respect the CPU translation mode
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/CodeWindow.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/CodeWindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinWX/Debugger/CodeWindow.cpp b/Source/Core/DolphinWX/Debugger/CodeWindow.cpp
index 8d5137430e..fcf42756ca 100644
--- a/Source/Core/DolphinWX/Debugger/CodeWindow.cpp
+++ b/Source/Core/DolphinWX/Debugger/CodeWindow.cpp
@@ -298,7 +298,7 @@ void CCodeWindow::StepOver()
{
if (CCPU::IsStepping())
{
- UGeckoInstruction inst = Memory::Read_Instruction(PC);
+ UGeckoInstruction inst = PowerPC::HostRead_Instruction(PC);
if (inst.LK)
{
PowerPC::breakpoints.ClearAllTemporary();
@@ -329,7 +329,7 @@ void CCodeWindow::StepOut()
u64 steps = 0;
PowerPC::CoreMode oldMode = PowerPC::GetMode();
PowerPC::SetMode(PowerPC::MODE_INTERPRETER);
- UGeckoInstruction inst = Memory::Read_Instruction(PC);
+ UGeckoInstruction inst = PowerPC::HostRead_Instruction(PC);
while (inst.hex != 0x4e800020 && steps < timeout) // check for blr
{
if (inst.LK)
@@ -347,7 +347,7 @@ void CCodeWindow::StepOut()
PowerPC::SingleStep();
++steps;
}
- inst = Memory::Read_Instruction(PC);
+ inst = PowerPC::HostRead_Instruction(PC);
}
PowerPC::SingleStep();
@@ -604,7 +604,7 @@ void CCodeWindow::OnJitMenu(wxCommandEvent& event)
bool found = false;
for (u32 addr = 0x80000000; addr < 0x80180000; addr += 4)
{
- const char *name = PPCTables::GetInstructionName(Memory::ReadUnchecked_U32(addr));
+ const char *name = PPCTables::GetInstructionName(PowerPC::HostRead_U32(addr));
if (name && (wx_name == name))
{
NOTICE_LOG(POWERPC, "Found %s at %08x", wx_name.c_str(), addr);