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:
Lioncash committed 2018-06-19 13:26:08 -04:00
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;
}