mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -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:
@ -156,7 +156,7 @@ u32 GetFakeDecrementer()
|
||||
void TimeBaseSet()
|
||||
{
|
||||
CoreTiming::SetFakeTBStartTicks(CoreTiming::GetTicks());
|
||||
CoreTiming::SetFakeTBStartValue(*((u64*)&TL));
|
||||
CoreTiming::SetFakeTBStartValue(PowerPC::ReadFullTimeBaseValue());
|
||||
}
|
||||
|
||||
u64 GetFakeTimeBase()
|
||||
|
Reference in New Issue
Block a user