Skip to contentSkip to conversation

target-arm: Make LPAE feature imply V7MP

PATCH In review Peter Maydell 2 participants 2 messages Jun 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-arm: Make LPAE feature imply V7MP

The v7 ARM ARM specifies that the Large Physical Address Extension requires implementation of the Multiprocessing Extensions, so make our LPAE feature imply V7MP rather than specifying both in the A15 CPU initfn.

---
Doesn't make much difference now, but will save a line when adding future CPU definitions.

 target-arm/cpu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-arm/cpu.c +1 -1
index 496a59f..54b4bb2 100644
@@ -198,6 +198,7 @@ static void arm_cpu_realizefn(DeviceState *dev, Error **errp)
         set_feature(env, ARM_FEATURE_VFP);
     }
     if (arm_feature(env, ARM_FEATURE_LPAE)) {
+        set_feature(env, ARM_FEATURE_V7MP);
         set_feature(env, ARM_FEATURE_PXN);
     }
 
@@ -571,7 +572,6 @@ static void cortex_a15_initfn(Object *obj)
     set_feature(&cpu->env, ARM_FEATURE_NEON);
     set_feature(&cpu->env, ARM_FEATURE_THUMB2EE);
     set_feature(&cpu->env, ARM_FEATURE_ARM_DIV);
-    set_feature(&cpu->env, ARM_FEATURE_V7MP);
     set_feature(&cpu->env, ARM_FEATURE_GENERIC_TIMER);
     set_feature(&cpu->env, ARM_FEATURE_DUMMY_C15_REGS);
     set_feature(&cpu->env, ARM_FEATURE_LPAE);
Signature · 1 line
1.7.9.5
Reviewed-by on v1 1/1
#1 lore raw

Am 13.06.2013 14:51, schrieb Peter Maydell:

Quoted 9 lines

The v7 ARM ARM specifies that the Large Physical Address Extension requires implementation of the Multiprocessing Extensions, so make our LPAE feature imply V7MP rather than specifying both in the A15 CPU initfn.

---
Doesn't make much difference now, but will save a line when adding future CPU definitions.

Looks sensible,

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg