ARM: Initialize the CPSR so that we're in user mode.

This commit is contained in:
Gabe Black
2009-07-27 00:52:48 -07:00
parent b8bf34be05
commit dc0df3f396

View File

@@ -48,7 +48,11 @@ namespace ArmISA
public:
void clear()
{
// Unknown startup state currently
memset(miscRegs, 0, sizeof(miscRegs));
CPSR cpsr = 0;
cpsr.mode = MODE_USER;
miscRegs[MISCREG_CPSR] = cpsr;
//XXX We need to initialize the rest of the state.
}
MiscReg