From 562d2a700bd4b930f7f64702e4b2c8d56e9fe9bf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 19 Jun 2018 13:06:37 -0400 Subject: 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. --- Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp') 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(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; }, -- cgit v1.2.3