hw/arm/bcm2836: Use the Cortex-A7 instead of Cortex-A15
Subsystems (2)
PATCH 1/1 hw/arm/bcm2836: Use the Cortex-A7 instead of Cortex-A15
The BCM2836 uses a Cortex-A7, not a Cortex-A15. Update the device to use the correct CPU.
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2836/QA7_rev3.4.pdf
When the BCM2836 was introduced (bad5623690b) the Cortex-A7 was not available, so the very similar Cortex-A15 was used. Since dcf578ed8ce we can model the correct core.
---
This was originally done by a patch from Alistair:
http://lists.nongnu.org/archive/html/qemu-devel/2018-02/msg00311.html
The refactor of bcm2836 means the code is different, but I'm using the same commit message.
Based-on: <[email protected]>
--- hw/arm/bcm2836.c | 2 +- hw/arm/raspi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
hw/arm/bcm2836.c +1 -1
@@ -32,7 +32,7 @@ struct BCM283XInfo {static const BCM283XInfo bcm283x_socs[] = { { .name =TYPE_BCM2836 , - .cpu_type =ARM_CPU_TYPE_NAME ("cortex-a15" ), + .cpu_type =ARM_CPU_TYPE_NAME ("cortex-a7" ), .clusterid =0xf , }, {
hw/arm/raspi.c +1 -1
@@ -226,7 +226,7 @@ static void raspi2_machine_init(MachineClass *mc) mc->no_parallel =1 ; mc->no_floppy =1 ; mc->no_cdrom =1 ; - mc->default_cpu_type =ARM_CPU_TYPE_NAME ("cortex-a15" ); + mc->default_cpu_type =ARM_CPU_TYPE_NAME ("cortex-a7" ); mc->max_cpus =BCM283X_NCPUS ; mc->min_cpus =BCM283X_NCPUS ; mc->default_cpus =BCM283X_NCPUS ;
Signature · 1 line
2.16.2
Quoted 9 lines · Peter Maydell
The BCM2836 uses a Cortex-A7, not a Cortex-A15. Update the device to use the correct CPU.
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2836/QA7_rev3.4.pdfWhen the BCM2836 was introduced (
bad5623690b) the Cortex-A7 was not available, so the very similar Cortex-A15 was used. Sincedcf578ed8cewe can model the correct core.Signed-off-by Peter Maydell <[email protected]>
Alistair
Quoted 44 lines
---
This was originally done by a patch from Alistair:
http://lists.nongnu.org/archive/html/qemu-devel/2018-02/msg00311.htmlThe refactor of bcm2836 means the code is different, but I'm using the same commit message.
Based-on: <[email protected]>
--- hw/arm/bcm2836.c | 2 +- hw/arm/raspi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)hw/arm/bcm2836.c +1
-1@@ -32,7 +32,7 @@ struct BCM283XInfo {static const BCM283XInfo bcm283x_socs[] = { { .name =TYPE_BCM2836 , - .cpu_type =ARM_CPU_TYPE_NAME ("cortex-a15" ), + .cpu_type =ARM_CPU_TYPE_NAME ("cortex-a7" ), .clusterid =0xf , }, {hw/arm/raspi.c +1
-2@@ -226,7 +226,7 @@ static void raspi2_machine_init(MachineClass *mc) mc->no_parallel =1 ; mc->no_floppy =1 ; mc->no_cdrom =1 ; - mc->default_cpu_type =ARM_CPU_TYPE_NAME ("cortex-a15" ); + mc->default_cpu_type =ARM_CPU_TYPE_NAME ("cortex-a7" ); mc->max_cpus =BCM283X_NCPUS ; mc->min_cpus =BCM283X_NCPUS ; mc->default_cpus =BCM283X_NCPUS ; --2.16.2
Quoted 9 lines · Peter Maydell
The BCM2836 uses a Cortex-A7, not a Cortex-A15. Update the device to use the correct CPU.
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2836/QA7_rev3.4.pdfWhen the BCM2836 was introduced (
bad5623690b) the Cortex-A7 was not available, so the very similar Cortex-A15 was used. Sincedcf578ed8cewe can model the correct core.Signed-off-by Peter Maydell <[email protected]>
Quoted 41 lines
---
This was originally done by a patch from Alistair:
http://lists.nongnu.org/archive/html/qemu-devel/2018-02/msg00311.htmlThe refactor of bcm2836 means the code is different, but I'm using the same commit message.
Based-on: <[email protected]>
--- hw/arm/bcm2836.c | 2 +- hw/arm/raspi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)hw/arm/bcm2836.c +1
-1@@ -32,7 +32,7 @@ struct BCM283XInfo {static const BCM283XInfo bcm283x_socs[] = { { .name =TYPE_BCM2836 , - .cpu_type =ARM_CPU_TYPE_NAME ("cortex-a15" ), + .cpu_type =ARM_CPU_TYPE_NAME ("cortex-a7" ), .clusterid =0xf , }, {hw/arm/raspi.c +1
-1@@ -226,7 +226,7 @@ static void raspi2_machine_init(MachineClass *mc) mc->no_parallel =1 ; mc->no_floppy =1 ; mc->no_cdrom =1 ; - mc->default_cpu_type =ARM_CPU_TYPE_NAME ("cortex-a15" ); + mc->default_cpu_type =ARM_CPU_TYPE_NAME ("cortex-a7" ); mc->max_cpus =BCM283X_NCPUS ; mc->min_cpus =BCM283X_NCPUS ; mc->default_cpus =BCM283X_NCPUS ;
Quoted 9 lines · Peter Maydell
The BCM2836 uses a Cortex-A7, not a Cortex-A15. Update the device to use the correct CPU.
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2836/QA7_rev3.4.pdfWhen the BCM2836 was introduced (
bad5623690b) the Cortex-A7 was not available, so the very similar Cortex-A15 was used. Sincedcf578ed8cewe can model the correct core.Signed-off-by Peter Maydell <[email protected]>
Quoted 41 lines
---
This was originally done by a patch from Alistair:
http://lists.nongnu.org/archive/html/qemu-devel/2018-02/msg00311.htmlThe refactor of bcm2836 means the code is different, but I'm using the same commit message.
Based-on: <[email protected]>
--- hw/arm/bcm2836.c | 2 +- hw/arm/raspi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)hw/arm/bcm2836.c +1
-1@@ -32,7 +32,7 @@ struct BCM283XInfo {static const BCM283XInfo bcm283x_socs[] = { { .name =TYPE_BCM2836 , - .cpu_type =ARM_CPU_TYPE_NAME ("cortex-a15" ), + .cpu_type =ARM_CPU_TYPE_NAME ("cortex-a7" ), .clusterid =0xf , }, {hw/arm/raspi.c +1
-1@@ -226,7 +226,7 @@ static void raspi2_machine_init(MachineClass *mc) mc->no_parallel =1 ; mc->no_floppy =1 ; mc->no_cdrom =1 ; - mc->default_cpu_type =ARM_CPU_TYPE_NAME ("cortex-a15" ); + mc->default_cpu_type =ARM_CPU_TYPE_NAME ("cortex-a7" ); mc->max_cpus =BCM283X_NCPUS ; mc->min_cpus =BCM283X_NCPUS ; mc->default_cpus =BCM283X_NCPUS ;