remove some suspect code in PowerPC::DoState which I think has already been supplanted by more correct code in CoreTiming::DoState

This commit is contained in:
nitsuja 2011-12-17 17:26:38 -08:00
parent 1e4e05fdc3
commit c6ea5f31f5
1 changed files with 8 additions and 4 deletions

View File

@ -75,13 +75,17 @@ void ExpandCR()
void DoState(PointerWrap &p)
{
rSPR(SPR_DEC) = SystemTimers::GetFakeDecrementer();
*((u64 *)&TL) = SystemTimers::GetFakeTimeBase(); //works since we are little endian and TL comes first :)
// some of this code has been disabled, because
// it changes registers even in MODE_MEASURE (which is suspicious and seems like it could cause desyncs)
// and because the values it's changing have been added to CoreTiming::DoState, so it might conflict to mess with them here.
// rSPR(SPR_DEC) = SystemTimers::GetFakeDecrementer();
// *((u64 *)&TL) = SystemTimers::GetFakeTimeBase(); //works since we are little endian and TL comes first :)
p.Do(ppcState);
SystemTimers::DecrementerSet();
SystemTimers::TimeBaseSet();
// SystemTimers::DecrementerSet();
// SystemTimers::TimeBaseSet();
if (jit && p.GetMode() == PointerWrap::MODE_READ)
jit->GetBlockCache()->ClearSafe();