mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 16:49:58 -06: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:
@ -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