ARM: Make the MPUIR register report that 1 unified data region is supported.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:10 +0000 (12:58 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:10 +0000 (12:58 -0500)
src/arch/arm/isa.hh
src/arch/arm/miscregs.hh

index f6ad56dd43da0d722701a3db562d0ba4c867dd34..a9c404351d1f4a2743704d399b074697efa2c8e9 100644 (file)
@@ -112,6 +112,21 @@ namespace ArmISA
              */
             miscRegs[MISCREG_CPACR] = 0x0fffffff;
 
+            /* One region, unified map. */
+            miscRegs[MISCREG_MPUIR] = 0x100;
+
+            /*
+             * Implemented = '5' from "M5",
+             * Variant = 0,
+             */
+            miscRegs[MISCREG_MIDR] =
+                (0x35 << 24) | //Implementor is '5' from "M5"
+                (0 << 20)    | //Variant
+                (0xf << 16)  | //Architecture from CPUID scheme
+                (0 << 4)     | //Primary part number
+                (0 << 0)     | //Revision
+                0;
+
             //XXX We need to initialize the rest of the state.
         }
 
index a43bb2fe52648906518d2a43523ca980a20247ad..bce76196281d360c9cf024e35e0e555d05336c3b 100644 (file)
@@ -102,12 +102,12 @@ namespace ArmISA
         MISCREG_BPIMVA,
         MISCREG_BPIALLIS,
         MISCREG_BPIALL,
+        MISCREG_MPUIR,
+        MISCREG_MIDR,
         MISCREG_CP15_UNIMP_START,
         MISCREG_CTR = MISCREG_CP15_UNIMP_START,
         MISCREG_TCMTR,
-        MISCREG_MPUIR,
         MISCREG_MPIDR,
-        MISCREG_MIDR,
         MISCREG_ID_PFR0,
         MISCREG_ID_PFR1,
         MISCREG_ID_DFR0,
@@ -164,7 +164,7 @@ namespace ArmISA
         "clidr", "ccsidr", "csselr",
         "icialluis", "iciallu", "icimvau",
         "bpimva", "bpiallis", "bpiall",
-        "ctr", "tcmtr", "mpuir", "mpidr", "midr",
+        "mpuir", "midr", "ctr", "tcmtr", "mpidr",
         "id_pfr0", "id_pfr1", "id_dfr0", "id_afr0",
         "id_mmfr0", "id_mmfr1", "id_mmfr2", "id_mmfr3",
         "id_isar0", "id_isar1", "id_isar2", "id_isar3", "id_isar4", "id_isar5",