]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
i386: Clean up cache CPUID code
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 24 May 2018 15:43:30 +0000 (11:43 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 8 Jun 2018 18:54:10 +0000 (15:54 -0300)
commita9f27ea9adc8c695197bd08f2e938ef7b4183f07
tree7560ef194e96d6f9b69ed6a04062e11c41509fd1
parent0d2fa03dae4fbe185a082f361342b1e30aed4582
i386: Clean up cache CPUID code

Always initialize CPUCaches structs with cache information, even
if legacy_cache=true.  Use different CPUCaches struct for
CPUID[2], CPUID[4], and the AMD CPUID leaves.

This will simplify a lot the logic inside cpu_x86_cpuid().

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Babu Moger <babu.moger@amd.com>
Message-Id: <1527176614-26271-2-git-send-email-babu.moger@amd.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu.c
target/i386/cpu.h