mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
hw/boards: Explicit no_sdcard=false as ON_OFF_AUTO_OFF
Update MachineClass::no_sdcard default implicit AUTO initialization to explicit OFF. This flag is consumed in system/vl.c::qemu_disable_default_devices(). Use this place to assert we don't have anymore AUTO state. In hw/ppc/e500.c we add the ppce500_machine_class_init() method to initialize once all the inherited classes. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20250204200934.65279-3-philmd@linaro.org>
This commit is contained in:
parent
e3660f60dc
commit
8a2f1f921c
98 changed files with 152 additions and 0 deletions
|
@ -842,6 +842,7 @@ static void boston_mach_class_init(MachineClass *mc)
|
|||
mc->default_ram_id = "boston.ddr";
|
||||
mc->max_cpus = 16;
|
||||
mc->default_cpu_type = MIPS_CPU_TYPE_NAME("I6400");
|
||||
mc->no_sdcard = ON_OFF_AUTO_OFF;
|
||||
}
|
||||
|
||||
DEFINE_MACHINE("boston", boston_mach_class_init)
|
||||
|
|
|
@ -335,6 +335,7 @@ static void mips_fuloong2e_machine_init(MachineClass *mc)
|
|||
mc->default_ram_size = 256 * MiB;
|
||||
mc->default_ram_id = "fuloong2e.ram";
|
||||
mc->minimum_page_bits = 14;
|
||||
mc->no_sdcard = ON_OFF_AUTO_OFF;
|
||||
machine_add_audiodev_property(mc);
|
||||
}
|
||||
|
||||
|
|
|
@ -424,6 +424,7 @@ static void mips_magnum_class_init(ObjectClass *oc, void *data)
|
|||
mc->block_default_type = IF_SCSI;
|
||||
mc->default_cpu_type = MIPS_CPU_TYPE_NAME("R4000");
|
||||
mc->default_ram_id = "mips_jazz.ram";
|
||||
mc->no_sdcard = ON_OFF_AUTO_OFF;
|
||||
}
|
||||
|
||||
static const TypeInfo mips_magnum_type = {
|
||||
|
@ -441,6 +442,7 @@ static void mips_pica61_class_init(ObjectClass *oc, void *data)
|
|||
mc->block_default_type = IF_SCSI;
|
||||
mc->default_cpu_type = MIPS_CPU_TYPE_NAME("R4000");
|
||||
mc->default_ram_id = "mips_jazz.ram";
|
||||
mc->no_sdcard = ON_OFF_AUTO_OFF;
|
||||
}
|
||||
|
||||
static const TypeInfo mips_pica61_type = {
|
||||
|
|
|
@ -679,6 +679,7 @@ static void loongson3v_machine_class_init(ObjectClass *oc, void *data)
|
|||
mc->default_ram_size = 1600 * MiB;
|
||||
mc->minimum_page_bits = 14;
|
||||
mc->default_nic = "virtio-net-pci";
|
||||
mc->no_sdcard = ON_OFF_AUTO_OFF;
|
||||
}
|
||||
|
||||
static const TypeInfo loongson3_machine_types[] = {
|
||||
|
|
|
@ -1306,6 +1306,7 @@ static void mips_malta_machine_init(MachineClass *mc)
|
|||
mc->default_cpu_type = MIPS_CPU_TYPE_NAME("24Kf");
|
||||
#endif
|
||||
mc->default_ram_id = "mips_malta.ram";
|
||||
mc->no_sdcard = ON_OFF_AUTO_OFF;
|
||||
compat_props_add(mc->compat_props, malta_compat, malta_compat_len);
|
||||
}
|
||||
|
||||
|
|
|
@ -247,6 +247,7 @@ static void mips_mipssim_machine_init(MachineClass *mc)
|
|||
mc->default_cpu_type = MIPS_CPU_TYPE_NAME("24Kf");
|
||||
#endif
|
||||
mc->default_ram_id = "mips_mipssim.ram";
|
||||
mc->no_sdcard = ON_OFF_AUTO_OFF;
|
||||
}
|
||||
|
||||
DEFINE_MACHINE("mipssim", mips_mipssim_machine_init)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue