mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -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:
@ -261,12 +261,7 @@ void RegisterWidget::PopulateTable()
|
||||
|
||||
// Special registers
|
||||
// TB
|
||||
AddRegister(16, 5, RegisterType::tb, "TB",
|
||||
[] {
|
||||
return static_cast<u64>(PowerPC::ppcState.spr[SPR_TU]) << 32 |
|
||||
PowerPC::ppcState.spr[SPR_TL];
|
||||
},
|
||||
nullptr);
|
||||
AddRegister(16, 5, RegisterType::tb, "TB", PowerPC::ReadFullTimeBaseValue, nullptr);
|
||||
|
||||
// PC
|
||||
AddRegister(17, 5, RegisterType::pc, "PC", [] { return PowerPC::ppcState.pc; },
|
||||
|
Reference in New Issue
Block a user