summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/RegisterView.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-06-19 13:06:37 -0400
committerLioncash <mathew1800@gmail.com>2018-06-19 13:26:08 -0400
commit562d2a700bd4b930f7f64702e4b2c8d56e9fe9bf (patch)
tree55b821ee217fd52607b044330f020d1b17bd56d8 /Source/Core/DolphinWX/Debugger/RegisterView.cpp
parent18c3e0302f6bca8546516173f4cb3ab0aa896a90 (diff)
PowerPC: Add functions to read/write the full timebase value
Allows us to get rid of a silly pointer cast and deduplicate some code from the front-end when it comes to reading the value.
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/RegisterView.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/RegisterView.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/DolphinWX/Debugger/RegisterView.cpp b/Source/Core/DolphinWX/Debugger/RegisterView.cpp
index 0e392d829d..1d43773ded 100644
--- a/Source/Core/DolphinWX/Debugger/RegisterView.cpp
+++ b/Source/Core/DolphinWX/Debugger/RegisterView.cpp
@@ -334,9 +334,7 @@ wxString CRegTable::GetValue(int row, int col)
PowerPC::ppcState.spr[SPR_IBAT4L + (row - 16) * 2]);
if (row == 16)
- return wxString::Format("%016" PRIx64, static_cast<u64>(PowerPC::ppcState.spr[SPR_TU])
- << 32 |
- PowerPC::ppcState.spr[SPR_TL]);
+ return wxString::Format("%016" PRIx64, PowerPC::ReadFullTimeBaseValue());
break;
}