mirror of
https://github.com/qemu/qemu.git
synced 2024-11-30 23:33:51 +08:00
i386/cpu: use get_uint() for "min-level"/"min-xlevel" properties
These are properties of TYPE_X86_CPU, defined with DEFINE_PROP_UINT32() Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20170607163635.17635-40-marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
61d7c14437
commit
709fa704f6
@ -2324,8 +2324,8 @@ static void x86_cpu_load_def(X86CPU *cpu, X86CPUDefinition *def, Error **errp)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* CPU models only set _minimum_ values for level/xlevel: */
|
/* CPU models only set _minimum_ values for level/xlevel: */
|
||||||
object_property_set_int(OBJECT(cpu), def->level, "min-level", errp);
|
object_property_set_uint(OBJECT(cpu), def->level, "min-level", errp);
|
||||||
object_property_set_int(OBJECT(cpu), def->xlevel, "min-xlevel", errp);
|
object_property_set_uint(OBJECT(cpu), def->xlevel, "min-xlevel", errp);
|
||||||
|
|
||||||
object_property_set_int(OBJECT(cpu), def->family, "family", errp);
|
object_property_set_int(OBJECT(cpu), def->family, "family", errp);
|
||||||
object_property_set_int(OBJECT(cpu), def->model, "model", errp);
|
object_property_set_int(OBJECT(cpu), def->model, "model", errp);
|
||||||
|
Loading…
Reference in New Issue
Block a user