]> git.proxmox.com Git - mirror_qemu.git/commitdiff
q800: rename q800_init() to q800_machine_init()
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 21 Jun 2023 08:53:33 +0000 (09:53 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 22 Jun 2023 06:57:02 +0000 (08:57 +0200)
This will enable us later to distinguish between QOM initialisation and machine
initialisation.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230621085353.113233-5-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/m68k/q800.c

index c0256c8a904c0f2a400fc0915090afef7e4461fc..062a3c6c7614f461207c8dae4d28661ad352d696 100644 (file)
@@ -362,7 +362,7 @@ static uint8_t fake_mac_rom[] = {
     0x60, 0xFE                          /* bras [self] */
 };
 
-static void q800_init(MachineState *machine)
+static void q800_machine_init(MachineState *machine)
 {
     M68kCPU *cpu = NULL;
     int linux_boot;
@@ -738,8 +738,9 @@ static const size_t hw_compat_q800_len = G_N_ELEMENTS(hw_compat_q800);
 static void q800_machine_class_init(ObjectClass *oc, void *data)
 {
     MachineClass *mc = MACHINE_CLASS(oc);
+
     mc->desc = "Macintosh Quadra 800";
-    mc->init = q800_init;
+    mc->init = q800_machine_init;
     mc->default_cpu_type = M68K_CPU_TYPE_NAME("m68040");
     mc->max_cpus = 1;
     mc->block_default_type = IF_SCSI;