summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/Debugger/RegisterWidget.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/DolphinQt2/Debugger/RegisterWidget.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/DolphinQt2/Debugger/RegisterWidget.cpp')
-rw-r--r--Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp
index 2a2fff7aa2..794bc88856 100644
--- a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp
+++ b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp
@@ -261,12 +261,7 @@ void RegisterWidget::PopulateTable()
// Special registers
// TB
- AddRegister(16, 5, RegisterType::tb, "TB",
- [] {
- return static_cast<u64>(PowerPC::ppcState.spr[SPR_TU]) << 32 |
- PowerPC::ppcState.spr[SPR_TL];
- },
- nullptr);
+ AddRegister(16, 5, RegisterType::tb, "TB", PowerPC::ReadFullTimeBaseValue, nullptr);
// PC
AddRegister(17, 5, RegisterType::pc, "PC", [] { return PowerPC::ppcState.pc; },