fix some compilation warnings regarding typcase of (CPUState *)

This commit is contained in:
Nguyen Anh Quynh
2016-10-26 17:05:26 +08:00
parent 44ab083d9b
commit 1f65b76fbd
3 changed files with 5 additions and 4 deletions

View File

@@ -54,7 +54,8 @@ static int machvirt_init(struct uc_struct *uc, MachineState *machine)
return -1;
}
uc->cpu = cpuobj = object_new(uc, object_class_get_name(oc));
cpuobj = object_new(uc, object_class_get_name(oc));
uc->cpu = (CPUState *)cpuobj;
object_property_set_bool(uc, cpuobj, true, "realized", NULL);
}