]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
i386: Helpers to encode cache information consistently
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 10 May 2018 20:41:41 +0000 (15:41 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 15 May 2018 14:33:33 +0000 (11:33 -0300)
commit7e3482f824809e1f6ffeb5bb8103ba27a7d1a52a
tree5e2e05281d6b8f43458896ae6fe344fa8103b752
parent0da0fb062841d0dcd8ba47e4a989d2e952cdf0ff
i386: Helpers to encode cache information consistently

Instead of having a collection of macros that need to be used in
complex expressions to build CPUID data, define a CPUCacheInfo
struct that can hold information about a given cache.  Helper
functions will take a CPUCacheInfo struct as input to encode
CPUID leaves for a cache.

This will help us ensure consistency between cache information
CPUID leaves, and make the existing inconsistencies in CPUID info
more visible.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Babu Moger <babu.moger@amd.com>
Tested-by: Geoffrey McRae <geoff@hostfission.com>
Message-Id: <20180510204148.11687-2-babu.moger@amd.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu.c
target/i386/cpu.h