2007-05-01 08:55:13 -04:00
|
|
|
$OpenBSD: patch-target-i386_helper2_c,v 1.5 2007/05/01 12:55:14 todd Exp $
|
|
|
|
--- target-i386/helper2.c.orig Mon Feb 5 17:01:54 2007
|
|
|
|
+++ target-i386/helper2.c Mon Mar 12 15:48:39 2007
|
2006-12-22 12:31:45 -05:00
|
|
|
@@ -127,7 +127,7 @@ CPUX86State *cpu_x86_init(void)
|
2005-09-26 16:48:33 -04:00
|
|
|
env->cpuid_model[i >> 2] |= c << (8 * (i & 3));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-#ifdef TARGET_X86_64
|
|
|
|
+/* #ifdef TARGET_X86_64 -- You must enable it for Mac OS X x86 */
|
|
|
|
/* currently not enabled for std i386 because not fully tested */
|
|
|
|
env->cpuid_ext2_features = (env->cpuid_features & 0x0183F3FF);
|
2006-06-08 10:33:38 -04:00
|
|
|
env->cpuid_ext2_features |= CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX;
|
2007-05-01 08:55:13 -04:00
|
|
|
@@ -137,7 +137,7 @@ CPUX86State *cpu_x86_init(void)
|
2005-09-26 16:48:33 -04:00
|
|
|
env->cpuid_features |= CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA;
|
2007-05-01 08:55:13 -04:00
|
|
|
/* this feature is needed for Solaris and isn't fully implemented */
|
|
|
|
env->cpuid_features |= CPUID_PSE36;
|
2005-09-26 16:48:33 -04:00
|
|
|
-#endif
|
2007-05-01 08:55:13 -04:00
|
|
|
+/* #endif -- To run Mac OS X x86 */
|
2005-09-26 16:48:33 -04:00
|
|
|
}
|
|
|
|
cpu_reset(env);
|
2005-12-27 02:56:14 -05:00
|
|
|
#ifdef USE_KQEMU
|