From f9a88adddc272cafefe307c466e692a47713b510 Mon Sep 17 00:00:00 2001 From: EmptyChaos Date: Tue, 27 Sep 2016 15:43:16 +0000 Subject: [PATCH] PowerPC: Fix Dynamic BAT savestates --- Source/Core/Core/PowerPC/PowerPC.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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();