mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-11-12 09:09:18 +01:00
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.
This commit is contained in:
1 parent
18c3e0302f
commit
562d2a700b
6 files changed
+20
-18
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user