mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-10 21:15:35 +00:00
machine: Remove unused fields from QEMUMachine
This removes the following fields from QEMUMachine: family, alias, reset, hot_add_cpu, units_per_default_bus, no_serial, no_parallel, use_virtcon, use_sclp, no_floppy, no_cdrom, default_display, compat_props, and hw_version. The only users of those fields were already converted to use QOM and MachineClass directly, so they are not needed anymore. Backports commit d48f4fa69eb3efb03a2efe2e4606a97a17cf222f from qemu
This commit is contained in:
parent
9ec040b74d
commit
b65a3ece3b
|
@ -97,7 +97,6 @@ struct MachineClass {
|
|||
ObjectClass parent_class;
|
||||
/*< public >*/
|
||||
|
||||
const char *family; /* NULL iff @name identifies a standalone machtype */
|
||||
const char *name;
|
||||
|
||||
int (*init)(struct uc_struct *uc, MachineState *state);
|
||||
|
|
|
@ -182,10 +182,8 @@ static void machine_class_init(struct uc_struct *uc, ObjectClass *oc, void *data
|
|||
MachineClass *mc = MACHINE_CLASS(uc, oc);
|
||||
QEMUMachine *qm = data;
|
||||
|
||||
mc->family = qm->family;
|
||||
mc->name = qm->name;
|
||||
mc->init = qm->init;
|
||||
mc->reset = qm->reset;
|
||||
mc->max_cpus = qm->max_cpus;
|
||||
mc->is_default = qm->is_default;
|
||||
mc->arch = qm->arch;
|
||||
|
|
Loading…
Reference in a new issue