ARM: Initialize processes in user mode.
authorGabe Black <gblack@eecs.umich.edu>
Sun, 8 Nov 2009 08:54:32 +0000 (00:54 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Sun, 8 Nov 2009 08:54:32 +0000 (00:54 -0800)
I accidentally left in a change to test using int registers in system mode.
This change reverts that.

src/arch/arm/isa.hh

index 1ad5428e5278f0328f0009505e5823d779b7bfc3..6341e6cd01f5f6e530469a0dfab46df5203e9969 100644 (file)
@@ -79,7 +79,7 @@ namespace ArmISA
         {
             memset(miscRegs, 0, sizeof(miscRegs));
             CPSR cpsr = 0;
-            cpsr.mode = MODE_SYSTEM;
+            cpsr.mode = MODE_USER;
             miscRegs[MISCREG_CPSR] = cpsr;
             updateRegMap(cpsr);
             //XXX We need to initialize the rest of the state.