diff mbox

target-arm: Add missing compatible property to A53

Message ID 1424009858-9839-1-git-send-email-ozaki.ryota@gmail.com
State New
Headers show

Commit Message

Ryota OZAKI Feb. 15, 2015, 2:17 p.m. UTC
Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
---
 target-arm/cpu64.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Alistair Francis Feb. 16, 2015, 12:30 a.m. UTC | #1
On Mon, Feb 16, 2015 at 12:17 AM, Ryota Ozaki <ozaki.ryota@gmail.com> wrote:
> Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>

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

> ---
>  target-arm/cpu64.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/target-arm/cpu64.c b/target-arm/cpu64.c
> index 823c739..270bc2f 100644
> --- a/target-arm/cpu64.c
> +++ b/target-arm/cpu64.c
> @@ -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:

Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>

>      set_feature(&cpu->env, ARM_FEATURE_V8);
>      set_feature(&cpu->env, ARM_FEATURE_VFP4);
>      set_feature(&cpu->env, ARM_FEATURE_NEON);
> --
> 2.3.0
>
>
Ryota OZAKI Feb. 16, 2015, 2:10 p.m. UTC | #2
On Mon, Feb 16, 2015 at 9:30 AM, Alistair Francis <alistair23@gmail.com> wrote:
> On Mon, Feb 16, 2015 at 12:17 AM, Ryota Ozaki <ozaki.ryota@gmail.com> wrote:
>> Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
>
> 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...)

>
>> ---
>>  target-arm/cpu64.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/target-arm/cpu64.c b/target-arm/cpu64.c
>> index 823c739..270bc2f 100644
>> --- a/target-arm/cpu64.c
>> +++ b/target-arm/cpu64.c
>> @@ -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?

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

>
> Once the title is fixed:
>
> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>

Thanks! I'm preparing a revised patch.

  ozaki-r

>
>>      set_feature(&cpu->env, ARM_FEATURE_V8);
>>      set_feature(&cpu->env, ARM_FEATURE_VFP4);
>>      set_feature(&cpu->env, ARM_FEATURE_NEON);
>> --
>> 2.3.0
>>
>>
diff mbox

Patch

diff --git a/target-arm/cpu64.c b/target-arm/cpu64.c
index 823c739..270bc2f 100644
--- a/target-arm/cpu64.c
+++ b/target-arm/cpu64.c
@@ -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);