summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/WatchView.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/WatchView.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/WatchView.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/WatchView.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinWX/Debugger/WatchView.cpp b/Source/Core/DolphinWX/Debugger/WatchView.cpp
index 13baf3660a..0ede80bb34 100644
--- a/Source/Core/DolphinWX/Debugger/WatchView.cpp
+++ b/Source/Core/DolphinWX/Debugger/WatchView.cpp
@@ -43,7 +43,7 @@ static u32 GetWatchAddr(int count)
static u32 GetWatchValue(int count)
{
- return Memory::ReadUnchecked_U32(GetWatchAddr(count));
+ return PowerPC::HostRead_U32(GetWatchAddr(count));
}
static void AddWatchAddr(int count, u32 value)
@@ -71,7 +71,7 @@ static void SetWatchName(int count, const std::string& value)
static void SetWatchValue(int count, u32 value)
{
- Memory::WriteUnchecked_U32(value, GetWatchAddr(count));
+ PowerPC::HostWrite_U32(value, GetWatchAddr(count));
}
static wxString GetValueByRowCol(int row, int col)
@@ -102,8 +102,8 @@ static wxString GetValueByRowCol(int row, int col)
case 4:
{
u32 addr = GetWatchAddr(row);
- if (Memory::IsRAMAddress(addr))
- return Memory::GetString(addr, 32).c_str();
+ if (PowerPC::HostIsRAMAddress(addr))
+ return PowerPC::HostGetString(addr, 32).c_str();
else
return wxEmptyString;
}