Fix correct reset value for ARM CP15 c1 auxiliary control register
authorJuha Riihimäki <juhriihi@esdhcp039173.research.nokia.com>
Wed, 21 Jan 2009 08:08:49 +0000 (10:08 +0200)
committerJuha Riihimäki <juhriihi@esdhcp039173.research.nokia.com>
Wed, 21 Jan 2009 08:08:49 +0000 (10:08 +0200)
According to ARM Cortex A8 Technical Reference Manual, the reset value for CP15 c1 auxiliary control register is 2, not zero.

target-arm/helper.c

index 81663c8..301c5f1 100644 (file)
@@ -1692,7 +1692,7 @@ uint32_t HELPER(get_cp15)(CPUState *env, uint32_t insn)
             case ARM_CPUID_ARM11MPCORE:
                 return 1;
             case ARM_CPUID_CORTEXA8:
-                return 0;
+                return 2;
             default:
                 goto bad_reg;
             }