x86/cpu: Use definitions from "qemu/units.h"
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Acked-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20180625124238.25339-4-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f043568f54
commit
6a4e0614c3
@ -18,6 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
|
#include "qemu/units.h"
|
||||||
#include "qemu/cutils.h"
|
#include "qemu/cutils.h"
|
||||||
#include "qemu/bitops.h"
|
#include "qemu/bitops.h"
|
||||||
|
|
||||||
@ -65,9 +66,6 @@ struct CPUID2CacheDescriptorInfo {
|
|||||||
int associativity;
|
int associativity;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define KiB 1024
|
|
||||||
#define MiB (1024 * 1024)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Known CPUID 2 cache descriptors.
|
* Known CPUID 2 cache descriptors.
|
||||||
* From Intel SDM Volume 2A, CPUID instruction
|
* From Intel SDM Volume 2A, CPUID instruction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user