aboutsummaryrefslogtreecommitdiff
path: root/target-i386/helper.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-25 18:11:30 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-25 18:11:30 +0000
commite737b32a3688d415c3b1f9d0a3fb2b941b1e758c (patch)
tree821be1b667f4d9430bbb89af4697b99536b0ce98 /target-i386/helper.c
parentc5096daf7f5e6d8a607319fbd1dfa8acbe96f4b8 (diff)
Core 2 Duo specification (Alexander Graf).
This patch adds a Core 2 Duo CPU to the available CPU types. The CPU definition tries to resemble a real CPU as good as possible, whilst not exposing features qemu does not implement. The patch also includes some minor additions that Core 2 Duo CPUs have: - New MSR: MSR_IA32_PERF_STATUS - CPUID up to level 5 (cache info and mwait) Signed-off-by: Alexander Graf <agraf@suse.de> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5317 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/helper.c')
-rw-r--r--target-i386/helper.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index 2dae1e3dfe..f7ad5844fb 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -165,6 +165,24 @@ static x86_def_t x86_defs[] = {
.xlevel = 0x8000000A,
.model_id = "QEMU Virtual CPU version " QEMU_VERSION,
},
+ {
+ .name = "core2duo",
+ /* original is on level 10 */
+ .level = 5,
+ .family = 6,
+ .model = 15,
+ .stepping = 11,
+ /* the original CPU does have many more features that are
+ * not implemented yet */
+ .features = PPRO_FEATURES |
+ CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA |
+ CPUID_PSE36,
+ .ext_features = CPUID_EXT_SSE3 | CPUID_EXT_MONITOR,
+ .ext2_features = (PPRO_FEATURES & 0x0183F3FF) |
+ CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX,
+ .xlevel = 0x8000000A,
+ .model_id = "Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz",
+ },
#endif
{
.name = "qemu32",