From 43ab099a130f1ecb3b5a0b76efa7812e05848f1f Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Mon, 12 Feb 2018 20:53:01 -0500 Subject: [PATCH] target-i386: X86CPU::xlevel2 QOM property We already have "level" and "xlevel", only "xlevel2" is missing. Backports commit 01431f3ce0f31e123172cc99c12c98c0ddbe9917 from qemu --- qemu/target-i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/target-i386/cpu.c b/qemu/target-i386/cpu.c index 6a2c08e1..0acbca6f 100644 --- a/qemu/target-i386/cpu.c +++ b/qemu/target-i386/cpu.c @@ -1706,7 +1706,7 @@ static void x86_cpu_load_def(X86CPU *cpu, X86CPUDefinition *def, Error **errp) object_property_set_int(env->uc, OBJECT(cpu), def->model, "model", errp); object_property_set_int(env->uc, OBJECT(cpu), def->stepping, "stepping", errp); object_property_set_int(env->uc, OBJECT(cpu), def->xlevel, "xlevel", errp); - env->cpuid_xlevel2 = def->xlevel2; + object_property_set_int(env->uc, OBJECT(cpu), def->xlevel2, "xlevel2", errp); cpu->cache_info_passthrough = def->cache_info_passthrough; object_property_set_str(env->uc, OBJECT(cpu), def->model_id, "model-id", errp); for (w = 0; w < FEATURE_WORDS; w++) {