Zero-initialize CPU state and register view

This commit is contained in:
Tillmann Karras 2018-10-09 23:47:32 +01:00
parent dfe8305ae7
commit db54b903ef
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,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;

View File

@ -67,6 +67,6 @@ private:
std::function<u64()> m_get_register;
std::function<void(u64)> m_set_register;
u64 m_value;
u64 m_value = 0;
RegisterDisplay m_display = RegisterDisplay::Hex;
};