This code should now build the x86_x64-softmmu part 2.

This commit is contained in:
xorstream
2017-01-19 22:50:28 +11:00
parent 37f9a248ea
commit 1aeaf5c40d
174 changed files with 2418 additions and 1414 deletions

View File

@ -75,7 +75,7 @@ MachineClass *find_default_machine(struct uc_struct *uc, int arch)
return mc;
}
__attribute__ ((visibility ("default")))
DEFAULT_VISIBILITY
int machine_initialize(struct uc_struct *uc)
{
MachineClass *machine_class;
@ -142,12 +142,11 @@ void qemu_register_machine(struct uc_struct *uc, QEMUMachine *m, const char *typ
void (*init)(struct uc_struct *uc, ObjectClass *oc, void *data))
{
char *name = g_strconcat(m->name, TYPE_MACHINE_SUFFIX, NULL);
TypeInfo ti = {
.name = name,
.parent = type_machine,
.class_init = init,
.class_data = (void *)m,
};
TypeInfo ti = {0};
ti.name = name;
ti.parent = type_machine;
ti.class_init = init;
ti.class_data = (void *)m;
if (init == NULL)
ti.class_init = machine_class_init;