aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2018-06-25 09:41:55 -0300
committerPaolo Bonzini <pbonzini@redhat.com>2018-07-02 14:45:23 +0200
commit6a4e0614c3e2ca01ac030e9c486c77d4d7225021 (patch)
tree376b0f2480eb8adc868abc7c23322fec3365e876 /target
parentf043568f548cfc6becf94f9582c330270580376d (diff)
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>
Diffstat (limited to 'target')
-rw-r--r--target/i386/cpu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index d57f3104e1..bdbd446b88 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -18,6 +18,7 @@
*/
#include "qemu/osdep.h"
+#include "qemu/units.h"
#include "qemu/cutils.h"
#include "qemu/bitops.h"
@@ -65,9 +66,6 @@ struct CPUID2CacheDescriptorInfo {
int associativity;
};
-#define KiB 1024
-#define MiB (1024 * 1024)
-
/*
* Known CPUID 2 cache descriptors.
* From Intel SDM Volume 2A, CPUID instruction