hw/arm: Misc trivial fixes/cleanups
v2 cover hw/arm: Misc trivial fixes/cleanups
Trivial bugfixes and cleanup patches noticed while rebasing my "Support disabling TCG on ARM (part 2)" series.
Since v1:
- added patches to remove 64-bit specific features on 32-bit build.
Philippe Mathieu-Daudé (7):
hw/arm/stm32f405_soc: Add missing dependency on OR_IRQ hw/arm/exynos4210: Add missing dependency on OR_IRQ hw/arm/xlnx-versal: Versal SoC requires ZDMA hw/arm/virt: Do not include 64-bit CPUs in 32-bit build hw/arm/sbsa-ref: Restrict SBSA-ref board to 64-bit build hw/arm/xlnx-zcu102: Restrict ZynqMP ZCU102 board to 64-bit build hw/arm: Display CPU type in machine description
hw/arm/digic_boards.c | 2 +- hw/arm/microbit.c | 2 +- hw/arm/netduino2.c | 2 +- hw/arm/netduinoplus2.c | 2 +- hw/arm/orangepi.c | 2 +- hw/arm/stellaris.c | 4 ++-- hw/arm/virt.c | 2 ++ hw/arm/Kconfig | 4 ++++ hw/arm/meson.build | 4 ++-- hw/dma/Kconfig | 3 +++ hw/dma/meson.build | 2 +- 11 files changed, 19 insertions(+), 10 deletions(-)
Signature · 1 line
2.26.2
PATCH v2 1/7 hw/arm/stm32f405_soc: Add missing dependency on OR_IRQ
The STM32F405 SoC uses an OR gate on its ADC IRQs.
---
Cc: [email protected]
--- hw/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
hw/arm/Kconfig +1 -0
@@ -336,6 +336,7 @@ config STM32F205_SOC config STM32F405_SOC bool select ARM_V7M + select OR_IRQ select STM32F4XX_SYSCFG select STM32F4XX_EXTI
Signature · 1 line
2.26.2
Re: [PATCH v2 1/7] hw/arm/stm32f405_soc: Add missing dependency on OR_IRQ
Quoted 5 lines · Philippe Mathieu-Daudé
The STM32F405 SoC uses an OR gate on its ADC IRQs.
Fixes 529fc5fd3e1 ("hw/arm: Add the STM32F4xx SoC")Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Alistair
Quoted 22 lines
---
Cc: [email protected]--- hw/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)hw/arm/Kconfig +1
-1@@ -336,6 +336,7 @@ config STM32F205_SOC config STM32F405_SOC bool select ARM_V7M + select OR_IRQ select STM32F4XX_SYSCFG select STM32F4XX_EXTI --2.26.2
PATCH v2 2/7 hw/arm/exynos4210: Add missing dependency on OR_IRQ
In reply to Philippe Mathieu-DaudéThe Exynos4210 SoC uses an OR gate on the PL330 IRQ lines.
---
Cc: Igor Mitsyanko <[email protected]>
--- hw/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
hw/arm/Kconfig +1 -0
@@ -52,6 +52,7 @@ config EXYNOS4 select PTIMER select SDHCI select USB_EHCI_SYSBUS + select OR_IRQ config HIGHBANK bool
Signature · 1 line
2.26.2
PATCH v2 3/7 hw/arm/xlnx-versal: Versal SoC requires ZDMA
In reply to Philippe Mathieu-DaudéThe Versal SoC instantiates the TYPE_XLNX_ZDMA object in versal_create_admas(). Introduce the XLNX_ZDMA configuration and select it to fix:
$ qemu-system-aarch64 -M xlnx-versal-virt ... qemu-system-aarch64: missing object type 'xlnx.zdma'
---
Cc: Alistair Francis <[email protected]>
Cc: "Edgar E. Iglesias" <[email protected]>
--- hw/arm/Kconfig | 2 ++ hw/dma/Kconfig | 3 +++ hw/dma/meson.build | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-)
hw/arm/Kconfig +2 -0
@@ -354,6 +354,7 @@ config XLNX_ZYNQMP_ARM select XILINX_AXI select XILINX_SPIPS select XLNX_ZYNQMP + select XLNX_ZDMA config XLNX_VERSAL bool
@@ -362,6 +363,7 @@ config XLNX_VERSAL select CADENCE select VIRTIO_MMIO select UNIMP + select XLNX_ZDMA config NPCM7XX bool
hw/dma/Kconfig +3 -0
@@ -18,6 +18,9 @@ config ZYNQ_DEVCFG bool select REGISTER +config XLNX_ZDMA + bool + config STP2000 bool
hw/dma/meson.build +1 -1
@@ -9,7 +9,7 @@ softmmu_ss.add(when: 'CONFIG_ETRAXFS', if_true: files('etraxfs_dma.c')) softmmu_ss.add(when: 'CONFIG_STP2000', if_true: files('sparc32_dma.c')) softmmu_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx_dpdma.c')) -softmmu_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zdma.c')) +softmmu_ss.add(when: 'CONFIG_XLNX_ZDMA', if_true: files('xlnx-zdma.c')) softmmu_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_dma.c', 'soc_dma.c')) softmmu_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_dma.c')) softmmu_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_dma.c'))
Signature · 1 line
2.26.2
Re: [PATCH v2 3/7] hw/arm/xlnx-versal: Versal SoC requires ZDMA
Quoted 9 lines · Philippe Mathieu-Daudé
The Versal SoC instantiates the
TYPE_XLNX_ZDMAobject inversal_create_admas(). Introduce theXLNX_ZDMAconfiguration and select it to fix:$ qemu-system-aarch64 -M xlnx-versal-virt ... qemu-system-aarch64: missing object type 'xlnx.zdma'Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Alistair
Quoted 60 lines
---
Cc: Alistair Francis <[email protected]>
Cc: "Edgar E. Iglesias" <[email protected]>--- hw/arm/Kconfig | 2 ++ hw/dma/Kconfig | 3 +++ hw/dma/meson.build | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-)hw/arm/Kconfig +2
-0@@ -354,6 +354,7 @@ config XLNX_ZYNQMP_ARM select XILINX_AXI select XILINX_SPIPS select XLNX_ZYNQMP + select XLNX_ZDMA config XLNX_VERSAL bool@@ -362,6 +363,7 @@ config XLNX_VERSAL select CADENCE select VIRTIO_MMIO select UNIMP + select XLNX_ZDMA config NPCM7XX boolhw/dma/Kconfig +3
-0@@ -18,6 +18,9 @@ config ZYNQ_DEVCFG bool select REGISTER +config XLNX_ZDMA + bool + config STP2000 boolhw/dma/meson.build +1
-2@@ -9,7 +9,7 @@ softmmu_ss.add(when: 'CONFIG_ETRAXFS', if_true: files('etraxfs_dma.c')) softmmu_ss.add(when: 'CONFIG_STP2000', if_true: files('sparc32_dma.c')) softmmu_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx_dpdma.c')) -softmmu_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zdma.c')) +softmmu_ss.add(when: 'CONFIG_XLNX_ZDMA', if_true: files('xlnx-zdma.c')) softmmu_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_dma.c', 'soc_dma.c')) softmmu_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_dma.c')) softmmu_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_dma.c')) --2.26.2
PATCH v2 4/7 hw/arm/virt: Do not include 64-bit CPUs in 32-bit build
In reply to Philippe Mathieu-DaudéSimilarly to commit 210f47840dd, remove 64-bit CPUs (which have never been available on 32-bit build, see commit d14d42f19bf), to fix:
$ make check-qtest-arm ... Running test qtest-arm/device-introspect-test missing object type 'cortex-a53-arm-cpu' Broken pipe ../tests/qtest/libqtest.c:181: kill_qemu() detected QEMU death from signal 6 (Aborted) (core dumped) ERROR qtest-arm/device-introspect-test - too few tests run (expected 6, got 5)
--- hw/arm/virt.c | 2 ++ 1 file changed, 2 insertions(+)
hw/arm/virt.c +2 -0
@@ -199,9 +199,11 @@ static const int a15irqmap[] = {static const char *valid_cpus[] = {ARM_CPU_TYPE_NAME ("cortex-a7" ),ARM_CPU_TYPE_NAME ("cortex-a15" ), +#ifdef TARGET_AARCH64ARM_CPU_TYPE_NAME ("cortex-a53" ),ARM_CPU_TYPE_NAME ("cortex-a57" ),ARM_CPU_TYPE_NAME ("cortex-a72" ), +#endif /* TARGET_AARCH64 */ARM_CPU_TYPE_NAME ("host" ),ARM_CPU_TYPE_NAME ("max" ), };
Signature · 1 line
2.26.2
Re: [PATCH v2 4/7] hw/arm/virt: Do not include 64-bit CPUs in 32-bit build
Quoted 13 lines · Philippe Mathieu-Daudé
Similarly to commit
210f47840dd, remove 64-bit CPUs (which have never been available on 32-bit build, see commitd14d42f19bf), to fix:$ make check-qtest-arm ... Running test qtest-arm/device-introspect-test missing object type 'cortex-a53-arm-cpu' Broken pipe ../tests/qtest/libqtest.c:181: kill_qemu() detected QEMU death from signal 6 (Aborted) (core dumped) ERROR qtest-arm/device-introspect-test - too few tests run (expected 6, got 5)
Quoted 1 line
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Alistair
Quoted 24 lines
--- hw/arm/virt.c | 2 ++ 1 file changed, 2 insertions(+)hw/arm/virt.c +2
-1@@ -199,9 +199,11 @@ static const int a15irqmap[] = {static const char *valid_cpus[] = {ARM_CPU_TYPE_NAME ("cortex-a7" ),ARM_CPU_TYPE_NAME ("cortex-a15" ), +#ifdef TARGET_AARCH64ARM_CPU_TYPE_NAME ("cortex-a53" ),ARM_CPU_TYPE_NAME ("cortex-a57" ),ARM_CPU_TYPE_NAME ("cortex-a72" ), +#endif /* TARGET_AARCH64 */ARM_CPU_TYPE_NAME ("host" ),ARM_CPU_TYPE_NAME ("max" ), }; --2.26.2
PATCH v2 5/7 hw/arm/sbsa-ref: Restrict SBSA-ref board to 64-bit build
In reply to Philippe Mathieu-DaudéThe SBSA-ref board only use CPUs available in the 64-bit build, it is pointless to have it available in the 32-bit build.
---
Cc: Radoslaw Biernacki <[email protected]>
Cc: Leif Lindholm <[email protected]>
--- hw/arm/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/meson.build +1 -1
@@ -22,7 +22,7 @@ arm_ss.add(when: 'CONFIG_TOSA', if_true: files('tosa.c')) arm_ss.add(when: 'CONFIG_Z2', if_true: files('z2.c')) arm_ss.add(when: 'CONFIG_REALVIEW', if_true: files('realview.c')) -arm_ss.add(when: 'CONFIG_SBSA_REF', if_true: files('sbsa-ref.c')) +arm_ss.add(when: ['CONFIG_SBSA_REF', 'TARGET_AARCH64'], if_true: files('sbsa-ref.c')) arm_ss.add(when: 'CONFIG_STELLARIS', if_true: files('stellaris.c')) arm_ss.add(when: 'CONFIG_COLLIE', if_true: files('collie.c')) arm_ss.add(when: 'CONFIG_VERSATILE', if_true: files('versatilepb.c'))
Signature · 1 line
2.26.2
Re: [PATCH v2 5/7] hw/arm/sbsa-ref: Restrict SBSA-ref board to 64-bit build
Quoted 16 lines · Philippe Mathieu-Daudé
The SBSA-ref board only use CPUs available in the 64-bit build, it is pointless to have it available in the 32-bit build.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Cc: Radoslaw Biernacki <[email protected]>
Cc: Leif Lindholm <[email protected]>--- hw/arm/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/arm/meson.build +0
-0
hw/arm/meson.build line 25
Quoted 5 lines
hw/arm/meson.build +1
-1@@ -22,7 +22,7 @@ arm_ss.add(when: 'CONFIG_TOSA', if_true: files('tosa.c')) arm_ss.add(when: 'CONFIG_Z2', if_true: files('z2.c')) arm_ss.add(when: 'CONFIG_REALVIEW', if_true: files('realview.c')) -arm_ss.add(when: 'CONFIG_SBSA_REF', if_true: files('sbsa-ref.c')) +arm_ss.add(when: ['CONFIG_SBSA_REF', 'TARGET_AARCH64'], if_true: files('sbsa-ref.c'))
Please disregard this patch, it shows that my other patch "meson: Introduce target-specific Kconfig" is incorrect:
https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg07989.html
Probably because per docs/devel/kconfig.rst "devices are usually ``default y`` if and only if they have at least one ``depends on``".
I'll try another approach such:
-- >8 --
hw/arm/Kconfig +2 -0
@@ -227,6 +227,8 @@ config REALVIEW config SBSA_REF bool + default y + depends on AARCH64 imply PCI_DEVICES select AHCI select ARM_SMMUV3
---
Re: [PATCH v2 5/7] hw/arm/sbsa-ref: Restrict SBSA-ref board to 64-bit build
Quoted 12 lines · Philippe Mathieu-Daudé
Quoted 11 lines · Philippe Mathieu-Daudé
The SBSA-ref board only use CPUs available in the 64-bit build, it is pointless to have it available in the 32-bit build.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Cc: Radoslaw Biernacki <[email protected]>
Cc: Leif Lindholm <[email protected]>--- hw/arm/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines
hw/arm/meson.build line 25
Quoted 10 lines
hw/arm/meson.build +1
-1@@ -22,7 +22,7 @@ arm_ss.add(when: 'CONFIG_TOSA', if_true: files('tosa.c')) arm_ss.add(when: 'CONFIG_Z2', if_true: files('z2.c')) arm_ss.add(when: 'CONFIG_REALVIEW', if_true: files('realview.c')) -arm_ss.add(when: 'CONFIG_SBSA_REF', if_true: files('sbsa-ref.c')) +arm_ss.add(when: ['CONFIG_SBSA_REF', 'TARGET_AARCH64'], if_true: files('sbsa-ref.c'))Please disregard this patch, it shows that my other patch "meson: Introduce target-specific
Kconfig" is incorrect:
https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg07989.html
Probably because perdocs/devel/kconfig.rst"devices are usually ``default y`` if and only if they have at least one ``depends on``".
The problem is the XLNX_ZYNQMP_ARM was incorrectly selected, enabling AARCH64, pulling in CONFIG_SBSA_REF on 32-bit.
https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg08014.html
With this change there is no problem (and this patch is not necessary):
config XLNX_ZYNQMP_ARM
bool
- default y if TCG && ARM
+ default y if TCG && AARCH64
Regards,
Phil.
PATCH v2 6/7 hw/arm/xlnx-zcu102: Restrict ZynqMP ZCU102 board to 64-bit build
In reply to Philippe Mathieu-DaudéThe ZynqMP ZCU102 board only use the Cortex-A53 CPU, which is only available in the 64-bit build. It is pointless to have this board present in the 32-bit build where this CPU is not available.
---
Cc: Alistair Francis <[email protected]>
Cc: "Edgar E. Iglesias" <[email protected]>
--- hw/arm/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/meson.build +1 -1
@@ -41,7 +41,7 @@ arm_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_peripherals.c', 'bcm2836.c', 'raspi.c')) arm_ss.add(when: 'CONFIG_STM32F205_SOC', if_true: files('stm32f205_soc.c')) arm_ss.add(when: 'CONFIG_STM32F405_SOC', if_true: files('stm32f405_soc.c')) -arm_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zynqmp.c', 'xlnx-zcu102.c')) +arm_ss.add(when: ['CONFIG_XLNX_ZYNQMP_ARM', 'TARGET_AARCH64'], if_true: files('xlnx-zynqmp.c', 'xlnx-zcu102.c')) arm_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files('xlnx-versal.c', 'xlnx-versal-virt.c')) arm_ss.add(when: 'CONFIG_FSL_IMX25', if_true: files('fsl-imx25.c', 'imx25_pdk.c')) arm_ss.add(when: 'CONFIG_FSL_IMX31', if_true: files('fsl-imx31.c', 'kzm.c'))
Signature · 1 line
2.26.2
Re: [PATCH v2 6/7] hw/arm/xlnx-zcu102: Restrict ZynqMP ZCU102 board to 64-bit build
Quoted 18 lines · Philippe Mathieu-Daudé
The ZynqMP ZCU102 board only use the Cortex-A53 CPU, which is only available in the 64-bit build. It is pointless to have this board present in the 32-bit build where this CPU is not available.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Cc: Alistair Francis <[email protected]>
Cc: "Edgar E. Iglesias" <[email protected]>--- hw/arm/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/arm/meson.build +0
-0
hw/arm/meson.build line 44
Quoted 5 lines
hw/arm/meson.build +1
-1@@ -41,7 +41,7 @@ arm_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_peripherals.c', 'bcm2836.c', 'raspi.c')) arm_ss.add(when: 'CONFIG_STM32F205_SOC', if_true: files('stm32f205_soc.c')) arm_ss.add(when: 'CONFIG_STM32F405_SOC', if_true: files('stm32f405_soc.c')) -arm_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zynqmp.c', 'xlnx-zcu102.c')) +arm_ss.add(when: ['CONFIG_XLNX_ZYNQMP_ARM', 'TARGET_AARCH64'], if_true: files('xlnx-zynqmp.c', 'xlnx-zcu102.c'))
Please disregard this patch, it shows that my other patch "meson: Introduce target-specific Kconfig" is incorrect:
https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg07989.html
Probably because per docs/devel/kconfig.rst "devices are usually ``default y`` if and only if they have at least one ``depends on``".
I'll try another approach such:
-- >8 --
hw/arm/Kconfig +2 -0
@@ -389,6 +391,8 @@ config XLNX_ZYNQMP_ARM config XLNX_VERSAL bool + default y + depends on AARCH64 select ARM_GIC select PL011 select CADENCE
---
Re: [PATCH v2 6/7] hw/arm/xlnx-zcu102: Restrict ZynqMP ZCU102 board to 64-bit build
Quoted 14 lines · Philippe Mathieu-Daudé
Quoted 13 lines · Philippe Mathieu-Daudé
The ZynqMP ZCU102 board only use the Cortex-A53 CPU, which is only available in the 64-bit build. It is pointless to have this board present in the 32-bit build where this CPU is not available.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Cc: Alistair Francis <[email protected]>
Cc: "Edgar E. Iglesias" <[email protected]>--- hw/arm/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines
hw/arm/meson.build line 44
Quoted 10 lines
hw/arm/meson.build +1
-1@@ -41,7 +41,7 @@ arm_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_peripherals.c', 'bcm2836.c', 'raspi.c')) arm_ss.add(when: 'CONFIG_STM32F205_SOC', if_true: files('stm32f205_soc.c')) arm_ss.add(when: 'CONFIG_STM32F405_SOC', if_true: files('stm32f405_soc.c')) -arm_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zynqmp.c', 'xlnx-zcu102.c')) +arm_ss.add(when: ['CONFIG_XLNX_ZYNQMP_ARM', 'TARGET_AARCH64'], if_true: files('xlnx-zynqmp.c', 'xlnx-zcu102.c'))Please disregard this patch, it shows that my other patch "meson: Introduce target-specific
Kconfig" is incorrect:
https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg07989.html
Probably because perdocs/devel/kconfig.rst"devices are usually ``default y`` if and only if they have at least one ``depends on``".
The problem is the XLNX_ZYNQMP_ARM was incorrectly selected, enabling AARCH64.
https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg08014.html
With this change there is no problem (and this patch is not necessary):
config XLNX_ZYNQMP_ARM
bool
- default y if TCG && ARM
+ default y if TCG && AARCH64
Regards,
Phil.
PATCH v2 7/7 hw/arm: Display CPU type in machine description
In reply to Philippe Mathieu-DaudéMost of ARM machines display their CPU when QEMU list the available machines (-M help). Some machines do not. Fix to unify the help output.
--- hw/arm/digic_boards.c | 2 +- hw/arm/microbit.c | 2 +- hw/arm/netduino2.c | 2 +- hw/arm/netduinoplus2.c | 2 +- hw/arm/orangepi.c | 2 +- hw/arm/stellaris.c | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-)
hw/arm/digic_boards.c +1 -1
@@ -142,7 +142,7 @@ static void canon_a1100_init(MachineState *machine)static void canon_a1100_machine_init (MachineClass *mc) { - mc->desc ="Canon PowerShot A1100 IS" ; + mc->desc ="Canon PowerShot A1100 IS (ARM946)" ; mc->init = &canon_a1100_init; mc->ignore_memory_transaction_failures = true; mc->default_ram_size =64 * MiB;
hw/arm/microbit.c +1 -1
@@ -64,7 +64,7 @@ static void microbit_machine_class_init(ObjectClass *oc, void *data) {MachineClass *mc =MACHINE_CLASS (oc); - mc->desc ="BBC micro:bit" ; + mc->desc ="BBC micro:bit (Cortex-M0)" ; mc->init = microbit_init; mc->max_cpus =1 ; }
hw/arm/netduino2.c +1 -1
@@ -54,7 +54,7 @@ static void netduino2_init(MachineState *machine)static void netduino2_machine_init (MachineClass *mc) { - mc->desc ="Netduino 2 Machine" ; + mc->desc ="Netduino 2 Machine (Cortex-M3)" ; mc->init = netduino2_init; mc->ignore_memory_transaction_failures = true; }
hw/arm/netduinoplus2.c +1 -1
@@ -55,7 +55,7 @@ static void netduinoplus2_init(MachineState *machine)static void netduinoplus2_machine_init (MachineClass *mc) { - mc->desc ="Netduino Plus 2 Machine" ; + mc->desc ="Netduino Plus 2 Machine (Cortex-M4)" ; mc->init = netduinoplus2_init; }
hw/arm/orangepi.c +1 -1
@@ -113,7 +113,7 @@ static void orangepi_init(MachineState *machine)static void orangepi_machine_init (MachineClass *mc) { - mc->desc ="Orange Pi PC" ; + mc->desc ="Orange Pi PC (Cortex-A7)" ; mc->init = orangepi_init; mc->block_default_type =IF_SD ; mc->units_per_default_bus =1 ;
hw/arm/stellaris.c +2 -2
@@ -1538,7 +1538,7 @@ static void lm3s811evb_class_init(ObjectClass *oc, void *data) {MachineClass *mc =MACHINE_CLASS (oc); - mc->desc ="Stellaris LM3S811EVB" ; + mc->desc ="Stellaris LM3S811EVB (Cortex-M3)" ; mc->init = lm3s811evb_init; mc->ignore_memory_transaction_failures = true; mc->default_cpu_type =ARM_CPU_TYPE_NAME ("cortex-m3" );
@@ -1554,7 +1554,7 @@ static void lm3s6965evb_class_init(ObjectClass *oc, void *data) {MachineClass *mc =MACHINE_CLASS (oc); - mc->desc ="Stellaris LM3S6965EVB" ; + mc->desc ="Stellaris LM3S6965EVB (Cortex-M3)" ; mc->init = lm3s6965evb_init; mc->ignore_memory_transaction_failures = true; mc->default_cpu_type =ARM_CPU_TYPE_NAME ("cortex-m3" );
Signature · 1 line
2.26.2
Re: [PATCH v2 7/7] hw/arm: Display CPU type in machine description
Quoted 6 lines · Philippe Mathieu-Daudé
Most of ARM machines display their CPU when QEMU list the available machines (-M help). Some machines do not. Fix to unify the help output.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Alistair
Quoted 100 lines
--- hw/arm/digic_boards.c | 2 +- hw/arm/microbit.c | 2 +- hw/arm/netduino2.c | 2 +- hw/arm/netduinoplus2.c | 2 +- hw/arm/orangepi.c | 2 +- hw/arm/stellaris.c | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-)hw/arm/digic_boards.c +1
-1@@ -142,7 +142,7 @@ static void canon_a1100_init(MachineState *machine)static void canon_a1100_machine_init (MachineClass *mc) { - mc->desc ="Canon PowerShot A1100 IS" ; + mc->desc ="Canon PowerShot A1100 IS (ARM946)" ; mc->init = &canon_a1100_init; mc->ignore_memory_transaction_failures = true; mc->default_ram_size =64 * MiB;hw/arm/microbit.c +1
-1@@ -64,7 +64,7 @@ static void microbit_machine_class_init(ObjectClass *oc, void *data) {MachineClass *mc =MACHINE_CLASS (oc); - mc->desc ="BBC micro:bit" ; + mc->desc ="BBC micro:bit (Cortex-M0)" ; mc->init = microbit_init; mc->max_cpus =1 ; }hw/arm/netduino2.c +1
-1@@ -54,7 +54,7 @@ static void netduino2_init(MachineState *machine)static void netduino2_machine_init (MachineClass *mc) { - mc->desc ="Netduino 2 Machine" ; + mc->desc ="Netduino 2 Machine (Cortex-M3)" ; mc->init = netduino2_init; mc->ignore_memory_transaction_failures = true; }hw/arm/netduinoplus2.c +1
-1@@ -55,7 +55,7 @@ static void netduinoplus2_init(MachineState *machine)static void netduinoplus2_machine_init (MachineClass *mc) { - mc->desc ="Netduino Plus 2 Machine" ; + mc->desc ="Netduino Plus 2 Machine (Cortex-M4)" ; mc->init = netduinoplus2_init; }hw/arm/orangepi.c +1
-1@@ -113,7 +113,7 @@ static void orangepi_init(MachineState *machine)static void orangepi_machine_init (MachineClass *mc) { - mc->desc ="Orange Pi PC" ; + mc->desc ="Orange Pi PC (Cortex-A7)" ; mc->init = orangepi_init; mc->block_default_type =IF_SD ; mc->units_per_default_bus =1 ;hw/arm/stellaris.c +2
-3@@ -1538,7 +1538,7 @@ static void lm3s811evb_class_init(ObjectClass *oc, void *data) {MachineClass *mc =MACHINE_CLASS (oc); - mc->desc ="Stellaris LM3S811EVB" ; + mc->desc ="Stellaris LM3S811EVB (Cortex-M3)" ; mc->init = lm3s811evb_init; mc->ignore_memory_transaction_failures = true; mc->default_cpu_type =ARM_CPU_TYPE_NAME ("cortex-m3" );@@ -1554,7 +1554,7 @@ static void lm3s6965evb_class_init(ObjectClass *oc, void *data) {MachineClass *mc =MACHINE_CLASS (oc); - mc->desc ="Stellaris LM3S6965EVB" ; + mc->desc ="Stellaris LM3S6965EVB (Cortex-M3)" ; mc->init = lm3s6965evb_init; mc->ignore_memory_transaction_failures = true; mc->default_cpu_type =ARM_CPU_TYPE_NAME ("cortex-m3" ); --2.26.2