aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-02-10 22:06:29 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-02-10 22:06:29 +0000
commitbf079a1e703f8d58ba7dcd9b0bcd793e66c962f4 (patch)
treec6aa45b23b98c2f1b36f8fd933665ff22c0b25b2 /target-i386
parent9df217a31741e21eb63a5e3ee8529391ba3762e3 (diff)
enabled MMX, PAE and SEP
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1284 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/helper2.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/target-i386/helper2.c b/target-i386/helper2.c
index 9ecf05d93c..730af1b52c 100644
--- a/target-i386/helper2.c
+++ b/target-i386/helper2.c
@@ -98,7 +98,7 @@ CPUX86State *cpu_x86_init(void)
#else
/* pentium pro */
family = 6;
- model = 1;
+ model = 3;
stepping = 3;
#endif
#endif
@@ -106,14 +106,18 @@ CPUX86State *cpu_x86_init(void)
env->cpuid_features = (CPUID_FP87 | CPUID_DE | CPUID_PSE |
CPUID_TSC | CPUID_MSR | CPUID_MCE |
CPUID_CX8 | CPUID_PGE | CPUID_CMOV);
+ env->cpuid_ext_features = 0;
+ env->cpuid_features |= CPUID_FXSR | CPUID_MMX | CPUID_SSE | CPUID_SSE2 | CPUID_PAE | CPUID_SEP;
#ifdef TARGET_X86_64
/* currently not enabled for std i386 because not fully tested */
- env->cpuid_features |= CPUID_FXSR | CPUID_MMX | CPUID_SSE | CPUID_SSE2;
- env->cpuid_features |= CPUID_APIC | CPUID_PAE;
+ env->cpuid_features |= CPUID_APIC;
#endif
}
cpu_single_env = env;
cpu_reset(env);
+#ifdef USE_KQEMU
+ kqemu_init(env);
+#endif
return env;
}
@@ -453,6 +457,8 @@ void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0)
((new_cr0 << (HF_MP_SHIFT - 1)) & (HF_MP_MASK | HF_EM_MASK | HF_TS_MASK));
}
+/* XXX: in legacy PAE mode, generate a GPF if reserved bits are set in
+ the PDPT */
void cpu_x86_update_cr3(CPUX86State *env, target_ulong new_cr3)
{
env->cr[3] = new_cr3;