summaryrefslogtreecommitdiff
path: root/target-i386/cpu.h
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-25 18:08:05 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-25 18:08:05 +0000
commitc5096daf7f5e6d8a607319fbd1dfa8acbe96f4b8 (patch)
tree04d9556b102aae68226c1cab9f83387465f325e5 /target-i386/cpu.h
parent4242b1bd8acc19aaaacffdaad4ac23213d72a72b (diff)
downloadqemu-c5096daf7f5e6d8a607319fbd1dfa8acbe96f4b8.tar.gz
qemu-c5096daf7f5e6d8a607319fbd1dfa8acbe96f4b8.tar.bz2
qemu-c5096daf7f5e6d8a607319fbd1dfa8acbe96f4b8.zip
Clean up vendor identification (Alexander Graf).
Right now CPU vendor identification contains a lot of magic numbers. The patch cleans them up to defines, so we can identify the CPU later on without copying magic numbers. Signed-off-by: Alexander Graf <agraf@suse.de> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5316 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/cpu.h')
-rw-r--r--target-i386/cpu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index 22169a90c3..dd57abcecc 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -333,6 +333,14 @@
#define CPUID_EXT3_IBS (1 << 10)
#define CPUID_EXT3_SKINIT (1 << 12)
+#define CPUID_VENDOR_INTEL_1 0x756e6547 /* "Genu" */
+#define CPUID_VENDOR_INTEL_2 0x49656e69 /* "ineI" */
+#define CPUID_VENDOR_INTEL_3 0x6c65746e /* "ntel" */
+
+#define CPUID_VENDOR_AMD_1 0x68747541 /* "Auth" */
+#define CPUID_VENDOR_AMD_2 0x69746e65 /* "enti" */
+#define CPUID_VENDOR_AMD_3 0x444d4163 /* "cAMD" */
+
#define EXCP00_DIVZ 0
#define EXCP01_SSTP 1
#define EXCP02_NMI 2