Merge pull request #4253 from EmptyChaos/bat-tables-savestate
PowerPC: Fix Dynamic BAT savestates
This commit is contained in:
commit
8122d2cc9f
|
@ -73,6 +73,11 @@ void DoState(PointerWrap& p)
|
||||||
// comes first :)
|
// comes first :)
|
||||||
|
|
||||||
p.DoPOD(ppcState);
|
p.DoPOD(ppcState);
|
||||||
|
if (p.GetMode() == PointerWrap::MODE_READ)
|
||||||
|
{
|
||||||
|
IBATUpdated();
|
||||||
|
DBATUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
// SystemTimers::DecrementerSet();
|
// SystemTimers::DecrementerSet();
|
||||||
// SystemTimers::TimeBaseSet();
|
// SystemTimers::TimeBaseSet();
|
||||||
|
@ -108,6 +113,9 @@ static void ResetRegisters()
|
||||||
for (auto& v : ppcState.cr_val)
|
for (auto& v : ppcState.cr_val)
|
||||||
v = 0x8000000000000001;
|
v = 0x8000000000000001;
|
||||||
|
|
||||||
|
DBATUpdated();
|
||||||
|
IBATUpdated();
|
||||||
|
|
||||||
TL = 0;
|
TL = 0;
|
||||||
TU = 0;
|
TU = 0;
|
||||||
SystemTimers::TimeBaseSet();
|
SystemTimers::TimeBaseSet();
|
||||||
|
|
Loading…
Reference in New Issue