From 9f3b9acad9fc5a86068cba80b562a721aa6b0fc8 Mon Sep 17 00:00:00 2001 From: David Korth Date: Wed, 11 Sep 2019 23:32:26 -0400 Subject: [PATCH] PowerPC.cpp: No need to explicitly initialize ppcState. "ppcState{}" is stored in the .data segment, which means the full ~4 MB is stored in the executable. "ppcState" is stored in the .bss segment, which means it only stores a note that tells it to allocate and zero ~4 MB at runtime. --- 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 3dd7894915..ebac1a07d9 100644 --- a/Source/Core/Core/PowerPC/PowerPC.cpp +++ b/Source/Core/Core/PowerPC/PowerPC.cpp @@ -32,7 +32,7 @@ namespace PowerPC { // STATE_TO_SAVE -PowerPCState ppcState{}; +PowerPCState ppcState; static CPUCoreBase* s_cpu_core_base = nullptr; static bool s_cpu_core_base_is_injected = false;