Commit 1f3358c87d50a6f10aea4d22a38fbe421f5e3873

Authored by bellard
1 parent 92510b8c

CLFLUSH cpuid fix (aka Linux 2.6 hang on x86_64)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1539 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-i386/helper.c
@@ -1307,7 +1307,7 @@ void helper_cpuid(void) @@ -1307,7 +1307,7 @@ void helper_cpuid(void)
1307 break; 1307 break;
1308 case 1: 1308 case 1:
1309 EAX = env->cpuid_version; 1309 EAX = env->cpuid_version;
1310 - EBX = 0; 1310 + EBX = 8 << 8; /* CLFLUSH size in quad words, Linux wants it. */
1311 ECX = env->cpuid_ext_features; 1311 ECX = env->cpuid_ext_features;
1312 EDX = env->cpuid_features; 1312 EDX = env->cpuid_features;
1313 break; 1313 break;