Skip to content

Commit f262031

Browse files
authored
Support QEMU virtual cpu as CORE2
qemu itself claims it is a 64bit P6, which does not exist in the wild.
1 parent 17609f8 commit f262031

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpuid_x86.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,11 @@ int get_cpuname(void){
11971197
case 3:
11981198
case 5:
11991199
case 6:
1200+
#ifdef __64BIT__
1201+
return CPUTYPE_CORE2;
1202+
#else
12001203
return CPUTYPE_PENTIUM2;
1204+
#endif
12011205
case 7:
12021206
case 8:
12031207
case 10:

0 commit comments

Comments
 (0)