Skip to contentSkip to conversation

target-arm: Add missing compatible property to A53

PATCH In review Ryota Ozaki 2 participants 3 messages Feb 15, 2015 – Feb 16, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-arm: Add missing compatible property to A53

---
 target-arm/cpu64.c | 1 +
 1 file changed, 1 insertion(+)
target-arm/cpu64.c +1 -0
index 823c739..270bc2f 100644
@@ -96,6 +96,7 @@ static void aarch64_a57_initfn(Object *obj)
 {
     ARMCPU *cpu = ARM_CPU(obj);
 
+    cpu->dtb_compatible = "arm,cortex-a57";
     set_feature(&cpu->env, ARM_FEATURE_V8);
     set_feature(&cpu->env, ARM_FEATURE_VFP4);
     set_feature(&cpu->env, ARM_FEATURE_NEON);
Signature · 1 line
2.3.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Ryota Ozaki

The title of your patch is incorrect, you specified A53 when you really mean A57

target-arm/cpu64.c static void aarch64_a57_initfn(Object *obj) · line 99

Quoted 13 lines
---
 target-arm/cpu64.c | 1 +
 1 file changed, 1 insertion(+)
target-arm/cpu64.c +1 -0
index 823c739..270bc2f 100644
@@ -96,6 +96,7 @@ static void aarch64_a57_initfn(Object *obj)
 {
     ARMCPU *cpu = ARM_CPU(obj);
 
+    cpu->dtb_compatible = "arm,cortex-a57";

What happens without this?

Once the title is fixed:

Quoted 7 lines
target-arm/cpu64.c +0 -1
     set_feature(&cpu->env, ARM_FEATURE_V8);
     set_feature(&cpu->env, ARM_FEATURE_VFP4);
     set_feature(&cpu->env, ARM_FEATURE_NEON);
--

2.3.0

#2 lore raw
Quoted 4 lines · Alistair Francis
Quoted 1 line · Ryota Ozaki

The title of your patch is incorrect, you specified A53 when you really mean A57

Definitely. I'm sorry for my fault (I found this problem when I was trying A53 emulation...)

Quoted 13 lines
Quoted 13 lines
---
 target-arm/cpu64.c | 1 +
 1 file changed, 1 insertion(+)
target-arm/cpu64.c +0 -0
index 823c739..270bc2f 100644
@@ -96,6 +96,7 @@ static void aarch64_a57_initfn(Object *obj)
 {
     ARMCPU *cpu = ARM_CPU(obj);
 
Quoted 3 lines

target-arm/cpu64.c static void aarch64_a57_initfn(Object *obj) · line 99

Quoted 1 line
target-arm/cpu64.c +1 -0
+    cpu->dtb_compatible = "arm,cortex-a57";

What happens without this?

Recent Linux looks up the property and warns "Unknown CPU type" if it doesn't exist. Not big deal, actually.

Quoted 4 lines

Once the title is fixed:

Thanks! I'm preparing a revised patch.

ozaki-r

Quoted 8 lines
Quoted 8 lines
target-arm/cpu64.c +0 -1
     set_feature(&cpu->env, ARM_FEATURE_V8);
     set_feature(&cpu->env, ARM_FEATURE_VFP4);
     set_feature(&cpu->env, ARM_FEATURE_NEON);
--

2.3.0