summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/WatchView.cpp
diff options
context:
space:
mode:
authormagumagu <magumagu9@gmail.com>2015-01-17 13:17:36 -0800
committermagumagu <magumagu9@gmail.com>2015-02-11 13:56:22 -0800
commitac54c6a4e2f6790f628f8a8112ff1940732f5068 (patch)
tree096df265a2517bc5d1e4215e7445ebc7851ad6d8 /Source/Core/DolphinWX/Debugger/WatchView.cpp
parentd9988ee9b5d89b4ac5905dfffabb8ccae2d78a76 (diff)
Make address translation respect the CPU translation mode.
The PowerPC CPU has bits in MSR (DR and IR) which control whether addresses are translated. We should respect these instead of mixing physical addresses and translated addresses into the same address space. This is mostly mass-renaming calls to memory accesses APIs from places which expect address translation to use a different version from those which do not expect address translation. This does very little on its own, but it's the first step to a correct BAT implementation.
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;
}