hw/arm: Misc trivial fixes/cleanups
cover hw/arm: Misc trivial fixes/cleanups
A pair of bugfixes and cleanup patches noticed while rebasing my "Support disabling TCG on ARM (part 2)" series.
Philippe Mathieu-Daudé (3):
hw/arm/Kconfig: Add missing dependency STM32F405 -> OR_IRQ hw/arm/Kconfig: Add missing dependency EXYNOS4210 -> OR_IRQ 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/Kconfig | 2 ++ 7 files changed, 9 insertions(+), 7 deletions(-)
Signature · 1 line
2.26.2
PATCH 1/3 hw/arm/Kconfig: Add missing dependency STM32F405 -> 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
PATCH 2/3 hw/arm/Kconfig: Add missing dependency EXYNOS4210 -> OR_IRQ
In reply to Philippe Mathieu-DaudéThe Exynos4210 SoC uses an OR gate on the PL330 IRQ lines.
--- 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 3/3 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