Skip to contentSkip to conversation

hw/m68k/next-cube: Show deprecation notice to users

PATCH In review Peter Maydell 3 participants 3 messages Oct 30

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/m68k/next-cube: Show deprecation notice to users

In commit 5d3333e12a034 we deprecated the next-cube machine, but forgot to set its MachineClass::deprecation_reason. Add that, so that anybody running the machine is shown the warning that it's now deprecated.

Fixes 5d3333e12a034 ("docs/about: Deprecate the 'next-cube' m68k machine")
---
 hw/m68k/next-cube.c | 1 +
 1 file changed, 1 insertion(+)
hw/m68k/next-cube.c +1 -0
index d8cb4a8c23d..0d927c7b485 100644
@@ -1370,6 +1370,7 @@ static void next_machine_class_init(ObjectClass *oc, const void *data)
     mc->default_ram_id = "next.ram";
     mc->default_cpu_type = M68K_CPU_TYPE_NAME("m68040");
     mc->no_cdrom = true;
+    mc->deprecation_reason = "machine is incomplete and cannot boot a kernel";
 }
 
 static const TypeInfo next_typeinfo = {
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Peter Maydell

In commit 5d3333e12a034 we deprecated the next-cube machine, but forgot to set its MachineClass::deprecation_reason. Add that, so that anybody running the machine is shown the warning that it's now deprecated.

Fixes 5d3333e12a034 ("docs/about: Deprecate the 'next-cube' m68k machine")
---
  hw/m68k/next-cube.c | 1 +
  1 file changed, 1 insertion(+)

r~

Reviewed-by on v1 1/1
#2 lore raw
In reply to Peter Maydell

Am Fri, 30 Oct 2026 10:06:59 +0000
schrieb Peter Maydell <[email protected]>:

Quoted 16 lines

In commit 5d3333e12a034 we deprecated the next-cube machine, but forgot to set its MachineClass::deprecation_reason. Add that, so that anybody running the machine is shown the warning that it's now deprecated.

Fixes 5d3333e12a034 ("docs/about: Deprecate the 'next-cube' m68k machine")
---
 hw/m68k/next-cube.c | 1 +
 1 file changed, 1 insertion(+)
hw/m68k/next-cube.c +0 -0
index d8cb4a8c23d..0d927c7b485 100644

hw/m68k/next-cube.c static void next_machine_class_init(ObjectClass *oc, const void *data) · line 1374

Quoted 5 lines
hw/m68k/next-cube.c +1 -0
@@ -1370,6 +1370,7 @@ static void next_machine_class_init(ObjectClass *oc, const void *data)
     mc->default_ram_id = "next.ram";
     mc->default_cpu_type = M68K_CPU_TYPE_NAME("m68040");
     mc->no_cdrom = true;
+    mc->deprecation_reason = "machine is incomplete and cannot boot a kernel";
 }