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
2018-06-19 13:06:37 -04:00
parent 18c3e0302f
commit 562d2a700b
6 changed files with 20 additions and 18 deletions

View File

@ -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;
}