Skip to contentSkip to conversation

xlnx-zynqmp: Change the Cortex-R5 for Cortex-R5F

PATCH In review Edgar E. Iglesias 3 participants 6 messages May 29, 2018 – Jun 20, 2018 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

v2 cover xlnx-zynqmp: Change the Cortex-R5 for Cortex-R5F

From: "Edgar E. Iglesias" <[email protected]>

The ZynqMP actually has Cortex-R5Fs with the optional FPU enabled.

Cheers,
Edgar

ChangeLog:

v1 -> v2:
* Update ZCU102 description to mention R5Fs

Edgar E. Iglesias (2):
target-arm: Add the Cortex-R5F
xlnx-zynqmp: Swap Cortex-R5 for Cortex-R5F

 hw/arm/xlnx-zcu102.c | 2 +-
 hw/arm/xlnx-zynqmp.c | 2 +-
 target/arm/cpu.c     | 9 +++++++++
 3 files changed, 11 insertions(+), 2 deletions(-)
Signature · 1 line
2.14.1
#1 lore raw

PATCH v2 1/2 target-arm: Add the Cortex-R5F

From: "Edgar E. Iglesias" <[email protected]>

Add the Cortex-R5F with the optional FPU enabled.

---
 target/arm/cpu.c | 9 +++++++++
 1 file changed, 9 insertions(+)
target/arm/cpu.c +9 -0
index 5d60893a07..8ab571e84a 100644
@@ -1343,6 +1343,14 @@ static void cortex_r5_initfn(Object *obj)
     define_arm_cp_regs(cpu, cortexr5_cp_reginfo);
 }
 
+static void cortex_r5f_initfn(Object *obj)
+{
+    ARMCPU *cpu = ARM_CPU(obj);
+
+    cortex_r5_initfn(obj);
+    set_feature(&cpu->env, ARM_FEATURE_VFP3);
+}
+
 static const ARMCPRegInfo cortexa8_cp_reginfo[] = {
     { .name = "L2LOCKDOWN", .cp = 15, .crn = 9, .crm = 0, .opc1 = 1, .opc2 = 0,
       .access = PL1_RW, .type = ARM_CP_CONST, .resetvalue = 0 },
@@ -1803,6 +1811,7 @@ static const ARMCPUInfo arm_cpus[] = {
     { .name = "cortex-m33",  .initfn = cortex_m33_initfn,
                              .class_init = arm_v7m_class_init },
     { .name = "cortex-r5",   .initfn = cortex_r5_initfn },
+    { .name = "cortex-r5f",  .initfn = cortex_r5f_initfn },
     { .name = "cortex-a7",   .initfn = cortex_a7_initfn },
     { .name = "cortex-a8",   .initfn = cortex_a8_initfn },
     { .name = "cortex-a9",   .initfn = cortex_a9_initfn },
Signature · 1 line
2.14.1
#2 lore raw

PATCH v2 2/2 xlnx-zynqmp: Swap Cortex-R5 for Cortex-R5F

In reply to Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

The ZynqMP has Cortex-R5Fs with the optional FPU enabled.

---
 hw/arm/xlnx-zcu102.c | 2 +-
 hw/arm/xlnx-zynqmp.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
hw/arm/xlnx-zcu102.c +1 -1
index b126cf148b..51906a743f 100644
@@ -266,7 +266,7 @@ static void xlnx_zcu102_machine_class_init(ObjectClass *oc, void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
 
-    mc->desc = "Xilinx ZynqMP ZCU102 board with 4xA53s and 2xR5s based on " \
+    mc->desc = "Xilinx ZynqMP ZCU102 board with 4xA53s and 2xR5Fs based on " \
                "the value of smp";
     mc->init = xlnx_zcu102_init;
     mc->block_default_type = IF_IDE;
hw/arm/xlnx-zynqmp.c +1 -1
index 2045b9d71e..29df35fb75 100644
@@ -134,7 +134,7 @@ static void xlnx_zynqmp_create_rpu(XlnxZynqMPState *s, const char *boot_cpu,
         char *name;
 
         object_initialize(&s->rpu_cpu[i], sizeof(s->rpu_cpu[i]),
-                          "cortex-r5-" TYPE_ARM_CPU);
+                          "cortex-r5f-" TYPE_ARM_CPU);
         object_property_add_child(OBJECT(s), "rpu-cpu[*]",
                                   OBJECT(&s->rpu_cpu[i]), &error_abort);
 
Signature · 1 line
2.14.1
#3 lore raw
In reply to Edgar E. Iglesias
Quoted 3 lines · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

The ZynqMP actually has Cortex-R5Fs with the optional FPU enabled.

Hi Peter,

Any comments on this series?

Cheers,
Edgar

Quoted 21 lines

Cheers,
Edgar

ChangeLog:

v1 -> v2:
* Update ZCU102 description to mention R5Fs

Edgar E. Iglesias (2):
target-arm: Add the Cortex-R5F
xlnx-zynqmp: Swap Cortex-R5 for Cortex-R5F

 hw/arm/xlnx-zcu102.c | 2 +-
 hw/arm/xlnx-zynqmp.c | 2 +-
 target/arm/cpu.c     | 9 +++++++++
 3 files changed, 11 insertions(+), 2 deletions(-)
Signature · 1 line
2.14.1
#4 lore raw
Quoted 8 lines · Edgar E. Iglesias
Quoted 3 lines · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

The ZynqMP actually has Cortex-R5Fs with the optional FPU enabled.

Hi Peter,

Any comments on this series?

Oops, looks like it didn't make my to-review queue. I'll put it on the list...

thanks
-- PMM

#5 lore raw
Quoted 4 lines · Peter Maydell
Quoted 3 lines · Edgar E. Iglesias
Quoted 2 lines · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

The ZynqMP actually has Cortex-R5Fs with the optional FPU enabled.

Hi Peter,

Any comments on this series?

Oops, looks like it didn't make my to-review queue. I'll put it on the list...

...now applied to target-arm.next, thanks.

-- PMM