diff options
| author | Eduardo Habkost | 2018-05-10 22:41:41 +0200 |
|---|---|---|
| committer | Eduardo Habkost | 2018-05-15 16:33:33 +0200 |
| commit | 7e3482f824809e1f6ffeb5bb8103ba27a7d1a52a (patch) | |
| tree | 5e2e05281d6b8f43458896ae6fe344fa8103b752 /include | |
| parent | x86/cpu: Enable CLDEMOTE(Demote Cache Line) cpu feature (diff) | |
| download | qemu-7e3482f824809e1f6ffeb5bb8103ba27a7d1a52a.tar.gz qemu-7e3482f824809e1f6ffeb5bb8103ba27a7d1a52a.tar.xz qemu-7e3482f824809e1f6ffeb5bb8103ba27a7d1a52a.zip | |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
