mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
pc: Eliminate pc_common_machine_options()
All TYPE_PC_MACHINE subclasses call pc_common_machine_options(). TYPE_PC_MACHINE can simply initialize the common options on class_init directly. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
8170dfa077
commit
41742767bf
3 changed files with 1 additions and 8 deletions
|
@ -699,14 +699,8 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
|
|||
.value = "off",\
|
||||
},
|
||||
|
||||
static inline void pc_common_machine_options(MachineClass *m)
|
||||
{
|
||||
m->default_boot_order = "cad";
|
||||
}
|
||||
|
||||
static inline void pc_default_machine_options(MachineClass *m)
|
||||
{
|
||||
pc_common_machine_options(m);
|
||||
m->hot_add_cpu = pc_hot_add_cpu;
|
||||
m->max_cpus = 255;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue