All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] xlnx-zynqmp: Change the Cortex-R5 for Cortex-R5F
@ 2018-05-29 12:47 Edgar E. Iglesias
  2018-05-29 12:47 ` [Qemu-devel] [PATCH v2 1/2] target-arm: Add the Cortex-R5F Edgar E. Iglesias
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Edgar E. Iglesias @ 2018-05-29 12:47 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-arm, peter.maydell, frederic.konrad, sai.pavan.boddu,
	alistair, frasse.iglesias, luc.michel, sstabellini, f4bug,
	edgar.iglesias

From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>

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(-)

-- 
2.14.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] [PATCH v2 1/2] target-arm: Add the Cortex-R5F
  2018-05-29 12:47 [Qemu-devel] [PATCH v2 0/2] xlnx-zynqmp: Change the Cortex-R5 for Cortex-R5F Edgar E. Iglesias
@ 2018-05-29 12:47 ` Edgar E. Iglesias
  2018-05-29 12:47 ` [Qemu-devel] [PATCH v2 2/2] xlnx-zynqmp: Swap Cortex-R5 for Cortex-R5F Edgar E. Iglesias
  2018-06-20  9:50 ` [Qemu-devel] [PATCH v2 0/2] xlnx-zynqmp: Change the " Edgar E. Iglesias
  2 siblings, 0 replies; 6+ messages in thread
From: Edgar E. Iglesias @ 2018-05-29 12:47 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-arm, peter.maydell, frederic.konrad, sai.pavan.boddu,
	alistair, frasse.iglesias, luc.michel, sstabellini, f4bug,
	edgar.iglesias

From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>

Add the Cortex-R5F with the optional FPU enabled.

Reviewed-by: KONRAD Frederic <frederic.konrad@adacore.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
---
 target/arm/cpu.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/target/arm/cpu.c b/target/arm/cpu.c
index 5d60893a07..8ab571e84a 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -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 },
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Qemu-devel] [PATCH v2 2/2] xlnx-zynqmp: Swap Cortex-R5 for Cortex-R5F
  2018-05-29 12:47 [Qemu-devel] [PATCH v2 0/2] xlnx-zynqmp: Change the Cortex-R5 for Cortex-R5F Edgar E. Iglesias
  2018-05-29 12:47 ` [Qemu-devel] [PATCH v2 1/2] target-arm: Add the Cortex-R5F Edgar E. Iglesias
@ 2018-05-29 12:47 ` Edgar E. Iglesias
  2018-06-20  9:50 ` [Qemu-devel] [PATCH v2 0/2] xlnx-zynqmp: Change the " Edgar E. Iglesias
  2 siblings, 0 replies; 6+ messages in thread
From: Edgar E. Iglesias @ 2018-05-29 12:47 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-arm, peter.maydell, frederic.konrad, sai.pavan.boddu,
	alistair, frasse.iglesias, luc.michel, sstabellini, f4bug,
	edgar.iglesias

From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>

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

Reviewed-by: KONRAD Frederic <frederic.konrad@adacore.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
---
 hw/arm/xlnx-zcu102.c | 2 +-
 hw/arm/xlnx-zynqmp.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/arm/xlnx-zcu102.c b/hw/arm/xlnx-zcu102.c
index b126cf148b..51906a743f 100644
--- a/hw/arm/xlnx-zcu102.c
+++ b/hw/arm/xlnx-zcu102.c
@@ -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;
diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c
index 2045b9d71e..29df35fb75 100644
--- a/hw/arm/xlnx-zynqmp.c
+++ b/hw/arm/xlnx-zynqmp.c
@@ -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);
 
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH v2 0/2] xlnx-zynqmp: Change the Cortex-R5 for Cortex-R5F
  2018-05-29 12:47 [Qemu-devel] [PATCH v2 0/2] xlnx-zynqmp: Change the Cortex-R5 for Cortex-R5F Edgar E. Iglesias
  2018-05-29 12:47 ` [Qemu-devel] [PATCH v2 1/2] target-arm: Add the Cortex-R5F Edgar E. Iglesias
  2018-05-29 12:47 ` [Qemu-devel] [PATCH v2 2/2] xlnx-zynqmp: Swap Cortex-R5 for Cortex-R5F Edgar E. Iglesias
@ 2018-06-20  9:50 ` Edgar E. Iglesias
  2018-06-20 10:02   ` Peter Maydell
  2 siblings, 1 reply; 6+ messages in thread
From: Edgar E. Iglesias @ 2018-06-20  9:50 UTC (permalink / raw)
  To: Edgar E. Iglesias
  Cc: qemu-devel, qemu-arm, peter.maydell, frederic.konrad,
	sai.pavan.boddu, alistair, frasse.iglesias, luc.michel,
	sstabellini, f4bug

On Tue, May 29, 2018 at 02:47:05PM +0200, Edgar E. Iglesias wrote:
> From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
> 
> The ZynqMP actually has Cortex-R5Fs with the optional FPU enabled.

Hi Peter,

Any comments on this series?

Cheers,
Edgar


> 
> 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(-)
> 
> -- 
> 2.14.1
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH v2 0/2] xlnx-zynqmp: Change the Cortex-R5 for Cortex-R5F
  2018-06-20  9:50 ` [Qemu-devel] [PATCH v2 0/2] xlnx-zynqmp: Change the " Edgar E. Iglesias
@ 2018-06-20 10:02   ` Peter Maydell
  2018-06-20 16:33     ` Peter Maydell
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Maydell @ 2018-06-20 10:02 UTC (permalink / raw)
  To: Edgar E. Iglesias
  Cc: Edgar E. Iglesias, QEMU Developers, qemu-arm, KONRAD Frederic,
	Sai Pavan Boddu, Alistair Francis, Francisco Iglesias,
	Luc Michel, Stefano Stabellini, Philippe Mathieu-Daudé

On 20 June 2018 at 10:50, Edgar E. Iglesias <edgar.iglesias@xilinx.com> wrote:
> On Tue, May 29, 2018 at 02:47:05PM +0200, Edgar E. Iglesias wrote:
>> From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
>>
>> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PATCH v2 0/2] xlnx-zynqmp: Change the Cortex-R5 for Cortex-R5F
  2018-06-20 10:02   ` Peter Maydell
@ 2018-06-20 16:33     ` Peter Maydell
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2018-06-20 16:33 UTC (permalink / raw)
  To: Edgar E. Iglesias
  Cc: Edgar E. Iglesias, QEMU Developers, qemu-arm, KONRAD Frederic,
	Sai Pavan Boddu, Alistair Francis, Francisco Iglesias,
	Luc Michel, Stefano Stabellini, Philippe Mathieu-Daudé

On 20 June 2018 at 11:02, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 20 June 2018 at 10:50, Edgar E. Iglesias <edgar.iglesias@xilinx.com> wrote:
>> On Tue, May 29, 2018 at 02:47:05PM +0200, Edgar E. Iglesias wrote:
>>> From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
>>>
>>> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-06-20 16:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-29 12:47 [Qemu-devel] [PATCH v2 0/2] xlnx-zynqmp: Change the Cortex-R5 for Cortex-R5F Edgar E. Iglesias
2018-05-29 12:47 ` [Qemu-devel] [PATCH v2 1/2] target-arm: Add the Cortex-R5F Edgar E. Iglesias
2018-05-29 12:47 ` [Qemu-devel] [PATCH v2 2/2] xlnx-zynqmp: Swap Cortex-R5 for Cortex-R5F Edgar E. Iglesias
2018-06-20  9:50 ` [Qemu-devel] [PATCH v2 0/2] xlnx-zynqmp: Change the " Edgar E. Iglesias
2018-06-20 10:02   ` Peter Maydell
2018-06-20 16:33     ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.