mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
Merge pull request #7139 from lioncash/tb
PowerPC: Add functions to read/write the full timebase value
This commit is contained in:
commit
9f03d8ca6a
6 changed files with 20 additions and 18 deletions
|
@ -263,12 +263,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; },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue