From e86def732a58ddd343680154e04d1f6390cb0ac6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 18 Jan 2017 16:03:31 -0500 Subject: [PATCH] PowerPC: Move zeroing of segment registers into ResetRegisters --- Source/Core/Core/PowerPC/PowerPC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/PowerPC.cpp b/Source/Core/Core/PowerPC/PowerPC.cpp index 6f2ae50a56..4d40f64343 100644 --- a/Source/Core/Core/PowerPC/PowerPC.cpp +++ b/Source/Core/Core/PowerPC/PowerPC.cpp @@ -88,6 +88,7 @@ void DoState(PointerWrap& p) static void ResetRegisters() { memset(ppcState.ps, 0, sizeof(ppcState.ps)); + memset(ppcState.sr, 0, sizeof(ppcState.sr)); memset(ppcState.gpr, 0, sizeof(ppcState.gpr)); memset(ppcState.spr, 0, sizeof(ppcState.spr)); /* @@ -135,7 +136,6 @@ void Init(int cpu_core) s_invalidate_cache_thread_safe = CoreTiming::RegisterEvent("invalidateEmulatedCache", InvalidateCacheThreadSafe); - memset(ppcState.sr, 0, sizeof(ppcState.sr)); ppcState.pagetable_base = 0; ppcState.pagetable_hashmask = 0;