Compile fixes for GCC

This commit is contained in:
Connor McLaughlin
2019-10-22 23:07:51 +10:00
parent dc7b72b156
commit a76ec6fc19
19 changed files with 47 additions and 52 deletions

View File

@ -50,12 +50,13 @@ void Core::Initialize() {}
void Core::Reset()
{
m_regs = {};
std::memset(&m_regs, 0, sizeof(m_regs));
}
bool Core::DoState(StateWrapper& sw)
{
sw.DoPOD(&m_regs);
sw.DoArray(m_regs.dr32, NUM_DATA_REGS);
sw.DoArray(m_regs.cr32, NUM_CONTROL_REGS);
return !sw.HasError();
}
@ -1045,4 +1046,4 @@ void Core::Execute_GPF(Instruction inst)
m_regs.FLAG.UpdateError();
}
} // namespace GTE
} // namespace GTE