Skip to contentSkip to conversation

hw/arm: Misc trivial fixes/cleanups

PATCH Superseded Philippe Mathieu-Daudé 1 participant 4 messages Jan 30, 2021

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

PATCH 1/3 hw/arm/Kconfig: Add missing dependency STM32F405 -> OR_IRQ

The STM32F405 SoC uses an OR gate on its ADC IRQs.

Fixes 529fc5fd3e1 ("hw/arm: Add the STM32F4xx SoC")

---
Cc: [email protected]

---
 hw/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
hw/arm/Kconfig +1 -0
index 13cc42dcc84..a320a124855 100644
@@ -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
#2 lore raw

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.

Fixes dab15fbe2ab ("hw/arm/exynos4210: Fix DMA initialization")
---
 hw/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
hw/arm/Kconfig +1 -0
index a320a124855..223016bb4e8 100644
@@ -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
#3 lore raw

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
index be12873673b..6cdc1d83fca 100644
@@ -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
index 0947491cb97..e9494334ce7 100644
@@ -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
index 8f103341443..1733b71507c 100644
@@ -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
index 68abd3ec69d..d3ad7a2b675 100644
@@ -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
index d6306dfddae..40cdb5c6d2c 100644
@@ -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
index ad72c0959f1..27292ec4113 100644
@@ -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