ARM: Make the MPUIR register report that 1 unified data region is supported.

This commit is contained in:
Gabe Black 2010-06-02 12:58:10 -05:00
parent 3aa8faf177
commit c3381167c9
2 changed files with 18 additions and 3 deletions

View file

@ -112,6 +112,21 @@ namespace ArmISA
*/ */
miscRegs[MISCREG_CPACR] = 0x0fffffff; 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. //XXX We need to initialize the rest of the state.
} }

View file

@ -102,12 +102,12 @@ namespace ArmISA
MISCREG_BPIMVA, MISCREG_BPIMVA,
MISCREG_BPIALLIS, MISCREG_BPIALLIS,
MISCREG_BPIALL, MISCREG_BPIALL,
MISCREG_MPUIR,
MISCREG_MIDR,
MISCREG_CP15_UNIMP_START, MISCREG_CP15_UNIMP_START,
MISCREG_CTR = MISCREG_CP15_UNIMP_START, MISCREG_CTR = MISCREG_CP15_UNIMP_START,
MISCREG_TCMTR, MISCREG_TCMTR,
MISCREG_MPUIR,
MISCREG_MPIDR, MISCREG_MPIDR,
MISCREG_MIDR,
MISCREG_ID_PFR0, MISCREG_ID_PFR0,
MISCREG_ID_PFR1, MISCREG_ID_PFR1,
MISCREG_ID_DFR0, MISCREG_ID_DFR0,
@ -164,7 +164,7 @@ namespace ArmISA
"clidr", "ccsidr", "csselr", "clidr", "ccsidr", "csselr",
"icialluis", "iciallu", "icimvau", "icialluis", "iciallu", "icimvau",
"bpimva", "bpiallis", "bpiall", "bpimva", "bpiallis", "bpiall",
"ctr", "tcmtr", "mpuir", "mpidr", "midr", "mpuir", "midr", "ctr", "tcmtr", "mpidr",
"id_pfr0", "id_pfr1", "id_dfr0", "id_afr0", "id_pfr0", "id_pfr1", "id_dfr0", "id_afr0",
"id_mmfr0", "id_mmfr1", "id_mmfr2", "id_mmfr3", "id_mmfr0", "id_mmfr1", "id_mmfr2", "id_mmfr3",
"id_isar0", "id_isar1", "id_isar2", "id_isar3", "id_isar4", "id_isar5", "id_isar0", "id_isar1", "id_isar2", "id_isar3", "id_isar4", "id_isar5",