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/DolphinWX/Debugger/RegisterView.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Source/Core/DolphinWX/Debugger/RegisterView.cpp') 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(PowerPC::ppcState.spr[SPR_TU]) - << 32 | - PowerPC::ppcState.spr[SPR_TL]); + return wxString::Format("%016" PRIx64, PowerPC::ReadFullTimeBaseValue()); break; } -- cgit v1.2.3