From bf079a1e703f8d58ba7dcd9b0bcd793e66c962f4 Mon Sep 17 00:00:00 2001 From: bellard Date: Thu, 10 Feb 2005 22:06:29 +0000 Subject: [PATCH] enabled MMX, PAE and SEP git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1284 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-i386/helper2.c | 12 +++++++++--- 1 file 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; -- 2.11.0