mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-06-19 11:17:57 +00:00
fix a compilation warning
This commit is contained in:
parent
20b01a6933
commit
b6897e2015
18
qemu/vl.c
18
qemu/vl.c
|
@ -107,17 +107,15 @@ int machine_initialize(struct uc_struct *uc)
|
||||||
module_call_init(uc, MODULE_INIT_MACHINE);
|
module_call_init(uc, MODULE_INIT_MACHINE);
|
||||||
// this will auto initialize all register objects above.
|
// this will auto initialize all register objects above.
|
||||||
machine_class = find_default_machine(uc, uc->arch);
|
machine_class = find_default_machine(uc, uc->arch);
|
||||||
if (!uc->machine_state) {
|
if (machine_class == NULL) {
|
||||||
if (machine_class == NULL) {
|
//fprintf(stderr, "No machine specified, and there is no default.\n"
|
||||||
//fprintf(stderr, "No machine specified, and there is no default.\n"
|
// "Use -machine help to list supported machines!\n");
|
||||||
// "Use -machine help to list supported machines!\n");
|
return -2;
|
||||||
return -2;
|
|
||||||
}
|
|
||||||
|
|
||||||
current_machine = MACHINE(uc, object_new(uc, object_class_get_name(
|
|
||||||
OBJECT_CLASS(machine_class))));
|
|
||||||
uc->machine_state = current_machine;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
current_machine = MACHINE(uc, object_new(uc, object_class_get_name(
|
||||||
|
OBJECT_CLASS(machine_class))));
|
||||||
|
uc->machine_state = current_machine;
|
||||||
current_machine->uc = uc;
|
current_machine->uc = uc;
|
||||||
uc->cpu_exec_init_all(uc);
|
uc->cpu_exec_init_all(uc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue