Skip to content

Commit

Permalink
hw: m68k: virt: Add compat machine for 6.1
Browse files Browse the repository at this point in the history
Add the missing machine type for m68k/virt

Cc: qemu-stable@nongnu.org
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20211106194158.4068596-2-laurent@vivier.eu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
(cherry picked from commit 6837f29)
Signed-off-by: Michael Roth <michael.roth@amd.com>
  • Loading branch information
vivier authored and mdroth committed Dec 14, 2021
1 parent c2c7f10 commit 7d71e6b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hw/m68k/virt.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,14 @@ type_init(virt_machine_register_types)
} \
type_init(machvirt_machine_##major##_##minor##_init);

static void virt_machine_6_1_options(MachineClass *mc)
{
}
DEFINE_VIRT_MACHINE(6, 1, true)

static void virt_machine_6_0_options(MachineClass *mc)
{
virt_machine_6_1_options(mc);
compat_props_add(mc->compat_props, hw_compat_6_0, hw_compat_6_0_len);
}
DEFINE_VIRT_MACHINE(6, 0, true)
DEFINE_VIRT_MACHINE(6, 0, false)

0 comments on commit 7d71e6b

Please sign in to comment.