Skip to contentSkip to conversation

target-ppc: remove MMUCFG SPR from POWER7/8 class

PATCH In review Alexey Kardashevskiy 2 participants 2 messages Nov 18, 2013 – Dec 18, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-ppc: remove MMUCFG SPR from POWER7/8 class

PowerISA 2.06/2.07 put MMUCFG SPR to "E" (embedded) category so remove it from POWER7/8 class as it is "S" (server) category.

---
 target-ppc/translate_init.c | 6 ------
 1 file changed, 6 deletions(-)
target-ppc/translate_init.c +0 -6
index c90d1c6..96a7b2f 100644
@@ -7194,12 +7194,6 @@ static void init_proc_POWER7 (CPUPPCState *env)
                      &spr_read_generic, &spr_write_generic,
                      KVM_REG_PPC_PMC6, 0x00000000);
 #endif /* !CONFIG_USER_ONLY */
-    /* Memory management */
-    /* XXX : not implemented */
-    spr_register(env, SPR_MMUCFG, "MMUCFG",
-                 SPR_NOACCESS, SPR_NOACCESS,
-                 &spr_read_generic, SPR_NOACCESS,
-                 0x00000000); /* TOFIX */
     gen_spr_amr(env);
     /* XXX : not implemented */
     spr_register(env, SPR_CTRL, "SPR_CTRLT",
Signature · 1 line
1.8.4.rc4
#1 lore raw
Quoted 4 lines · Alexey Kardashevskiy

PowerISA 2.06/2.07 put MMUCFG SPR to "E" (embedded) category so remove it from POWER7/8 class as it is "S" (server) category.

POWER7 inherited this from the other 64bit cores. Does any of those actually implement MMUCFG? It's definitely category E in the 2.04 ISA already.

Please check all supported CPU types' book iv's and remove MMUCFG (and maybe other SPRs if you can spot them) if it's not really implemented on hardware.

Alex