Skip to contentSkip to conversation

hw/arm: Re-enable the MAX78000FTHR machine in qemu-system-arm/aarch64

PATCH Applied Philippe Mathieu-Daudé 4 participants 7 messages Dec 18, 2025 – Jan 12

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/arm: Re-enable the MAX78000FTHR machine in qemu-system-arm/aarch64

Unfortunately while rebasing the series registering the ARM/Aarch64 machine interfaces and getting it merged as commit 38c5ab40031 ("hw/arm: Filter machine types for qemu-system-arm/aarch64 binaries") we missed the recent addition of the MAX78000FTHR machine in commit 51eb283dd0e. Correct that.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3248

Fixes 38c5ab40031 ("hw/arm: Filter machine types for single binary")
---
 hw/arm/max78000fthr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
hw/arm/max78000fthr.c +2 -1
index c4f6b5b1b04..ccef85e456f 100644
@@ -12,6 +12,7 @@
 #include "hw/qdev-properties.h"
 #include "hw/qdev-clock.h"
 #include "qemu/error-report.h"
+#include "hw/arm/machines-qom.h"
 #include "hw/arm/max78000_soc.h"
 #include "hw/arm/boot.h"
 
@@ -47,4 +48,4 @@ static void max78000_machine_init(MachineClass *mc)
     mc->valid_cpu_types = valid_cpu_types;
 }
 
-DEFINE_MACHINE("max78000fthr", max78000_machine_init)
+DEFINE_MACHINE_ARM("max78000fthr", max78000_machine_init)
Signature · 1 line
2.52.0
#1 lore raw
Quoted 10 lines · Philippe Mathieu-Daudé

Unfortunately while rebasing the series registering the ARM/Aarch64 machine interfaces and getting it merged as commit 38c5ab40031 ("hw/arm: Filter machine types for qemu-system-arm/aarch64 binaries") we missed the recent addition of the MAX78000FTHR machine in commit 51eb283dd0e. Correct that.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3248

We have a functional test for this machine
(tests/functional/arm/test_max78000fthr.py)
so I don't understand how we missed this.

Quoted 5 lines
Fixes 38c5ab40031 ("hw/arm: Filter machine types for single binary")
---
  hw/arm/max78000fthr.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
#2 lore raw
Quoted 8 lines · Philippe Mathieu-Daudé
Quoted 7 lines · Philippe Mathieu-Daudé

Unfortunately while rebasing the series registering the ARM/Aarch64 machine interfaces and getting it merged as commit 38c5ab40031 ("hw/arm: Filter machine types for qemu-system-arm/aarch64 binaries") we missed the recent addition of the MAX78000FTHR machine in commit 51eb283dd0e. Correct that.

Quoted 7 lines
Quoted 3 lines

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3248

We have a functional test for this machine
(tests/functional/arm/test_max78000fthr.py)
so I don't understand how we missed this.

The functional tests are skipped if a machine is not available in the binary, otherwise the test would fail if you'd configure your QEMU with less machines.

Thomas

author Tested-by Markus Armbruster on v1 1/1
#3 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 7 lines · Philippe Mathieu-Daudé

Unfortunately while rebasing the series registering the ARM/Aarch64 machine interfaces and getting it merged as commit 38c5ab40031 ("hw/arm: Filter machine types for qemu-system-arm/aarch64 binaries") we missed the recent addition of the MAX78000FTHR machine in commit 51eb283dd0e. Correct that.

Quoted 8 lines

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3248

Fixes 38c5ab40031 ("hw/arm: Filter machine types for single binary")
---
  hw/arm/max78000fthr.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

Per https://lore.kernel.org/qemu-devel/[email protected]/:

#4 lore raw
Quoted 17 lines · Philippe Mathieu-Daudé
Quoted 7 lines · Philippe Mathieu-Daudé

Unfortunately while rebasing the series registering the ARM/Aarch64 machine interfaces and getting it merged as commit 38c5ab40031 ("hw/arm: Filter machine types for qemu-system-arm/aarch64 binaries") we missed the recent addition of the MAX78000FTHR machine in commit 51eb283dd0e. Correct that.

Quoted 8 lines

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3248

Fixes 38c5ab40031 ("hw/arm: Filter machine types for single binary")
---
  hw/arm/max78000fthr.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 2 lines

Per https://lore.kernel.org/qemu-devel/[email protected]/:

Fair :)

#5 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 8 lines · Philippe Mathieu-Daudé

Unfortunately while rebasing the series registering the ARM/Aarch64 machine interfaces and getting it merged as commit 38c5ab40031 ("hw/arm: Filter machine types for qemu-system-arm/aarch64 binaries") we missed the recent addition of the MAX78000FTHR machine in commit 51eb283dd0e. Correct that.

Quoted 8 lines

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3248

Fixes 38c5ab40031 ("hw/arm: Filter machine types for single binary")
---
 hw/arm/max78000fthr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied to target-arm.next, thanks.

Should we cc stable? (My feeling is 'yes'.)

-- PMM

#6 lore raw
Quoted 18 lines · Peter Maydell
Quoted 8 lines · Philippe Mathieu-Daudé

Unfortunately while rebasing the series registering the ARM/Aarch64 machine interfaces and getting it merged as commit 38c5ab40031 ("hw/arm: Filter machine types for qemu-system-arm/aarch64 binaries") we missed the recent addition of the MAX78000FTHR machine in commit 51eb283dd0e. Correct that.

Quoted 8 lines

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3248

Fixes 38c5ab40031 ("hw/arm: Filter machine types for single binary")
---
  hw/arm/max78000fthr.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 3 lines

Applied to target-arm.next, thanks.

Should we cc stable? (My feeling is 'yes'.)

The bug went into 10.2, so I'd say "yes".

Thomas