aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2019-06-25 02:00:04 -0300
committerEduardo Habkost <ehabkost@redhat.com>2019-07-05 17:08:04 -0300
commit1c809535e3083d4299899e9843a3f4e44b191a9c (patch)
treeffe8f5727e2871e5a978a87918da678a9d00bad4
parentf69ecddb4a02b5071297427b4ebb3d8f0cea7323 (diff)
downloadqemu-1c809535e3083d4299899e9843a3f4e44b191a9c.zip
qemu-1c809535e3083d4299899e9843a3f4e44b191a9c.tar.gz
qemu-1c809535e3083d4299899e9843a3f4e44b191a9c.tar.bz2
i386: Remove unused host_cpudef variable
The variable is completely unused, probably a leftover from previous code clean up. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20190625050008.12789-3-ehabkost@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-rw-r--r--target/i386/cpu.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 6787da4..b9d6f32 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -3134,14 +3134,8 @@ static void max_x86_cpu_initfn(Object *obj)
char vendor[CPUID_VENDOR_SZ + 1] = { 0 };
char model_id[CPUID_MODEL_ID_SZ + 1] = { 0 };
int family, model, stepping;
- X86CPUDefinition host_cpudef = { };
- uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0;
-
- host_cpuid(0x0, 0, &eax, &ebx, &ecx, &edx);
- x86_cpu_vendor_words2str(host_cpudef.vendor, ebx, edx, ecx);
host_vendor_fms(vendor, &family, &model, &stepping);
-
cpu_x86_fill_model_id(model_id);
object_property_set_str(OBJECT(cpu), vendor, "vendor", &error_abort);