Merge pull request #7482 from Tilka/sanity
Fix warning and zero-initialize variables
This commit is contained in:
commit
f8c679bab9
|
@ -30,7 +30,7 @@
|
||||||
namespace PowerPC
|
namespace PowerPC
|
||||||
{
|
{
|
||||||
// STATE_TO_SAVE
|
// STATE_TO_SAVE
|
||||||
PowerPCState ppcState;
|
PowerPCState ppcState{};
|
||||||
|
|
||||||
static CPUCoreBase* s_cpu_core_base = nullptr;
|
static CPUCoreBase* s_cpu_core_base = nullptr;
|
||||||
static bool s_cpu_core_base_is_injected = false;
|
static bool s_cpu_core_base_is_injected = false;
|
||||||
|
@ -191,7 +191,8 @@ static void InitializeCPUCore(CPUCore cpu_core)
|
||||||
s_cpu_core_base = JitInterface::InitJitCore(cpu_core);
|
s_cpu_core_base = JitInterface::InitJitCore(cpu_core);
|
||||||
if (!s_cpu_core_base) // Handle Situations where JIT core isn't available
|
if (!s_cpu_core_base) // Handle Situations where JIT core isn't available
|
||||||
{
|
{
|
||||||
WARN_LOG(POWERPC, "CPU core %d not available. Falling back to default.", cpu_core);
|
WARN_LOG(POWERPC, "CPU core %d not available. Falling back to default.",
|
||||||
|
static_cast<int>(cpu_core));
|
||||||
s_cpu_core_base = JitInterface::InitJitCore(DefaultCPUCore());
|
s_cpu_core_base = JitInterface::InitJitCore(DefaultCPUCore());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -67,6 +67,6 @@ private:
|
||||||
std::function<u64()> m_get_register;
|
std::function<u64()> m_get_register;
|
||||||
std::function<void(u64)> m_set_register;
|
std::function<void(u64)> m_set_register;
|
||||||
|
|
||||||
u64 m_value;
|
u64 m_value = 0;
|
||||||
RegisterDisplay m_display = RegisterDisplay::Hex;
|
RegisterDisplay m_display = RegisterDisplay::Hex;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue