diff options
| author | EmptyChaos <EmptyChaos@users.noreply.github.com> | 2016-09-27 15:43:16 +0000 |
|---|---|---|
| committer | EmptyChaos <EmptyChaos@users.noreply.github.com> | 2016-09-28 14:26:26 +1000 |
| commit | f9a88adddc272cafefe307c466e692a47713b510 (patch) | |
| tree | bf56f373f06172e56795f4951aeb9c154dec2288 /Source/Core | |
| parent | ed95115c1745c9a028e732ae0d6d3b4dfe942c22 (diff) | |
PowerPC: Fix Dynamic BAT savestates
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/PowerPC/PowerPC.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/Core/PowerPC/PowerPC.cpp b/Source/Core/Core/PowerPC/PowerPC.cpp index c0984d10fa..593ef6a469 100644 --- a/Source/Core/Core/PowerPC/PowerPC.cpp +++ b/Source/Core/Core/PowerPC/PowerPC.cpp @@ -73,6 +73,11 @@ void DoState(PointerWrap& p) // comes first :) p.DoPOD(ppcState); + if (p.GetMode() == PointerWrap::MODE_READ) + { + IBATUpdated(); + DBATUpdated(); + } // SystemTimers::DecrementerSet(); // SystemTimers::TimeBaseSet(); @@ -108,6 +113,9 @@ static void ResetRegisters() for (auto& v : ppcState.cr_val) v = 0x8000000000000001; + DBATUpdated(); + IBATUpdated(); + TL = 0; TU = 0; SystemTimers::TimeBaseSet(); |
