Fix P4 and IA64 cpu detection

This commit is contained in:
Stas Degteff
2005-10-07 12:37:19 +00:00
parent 626d41cfff
commit 7345cbfdf2
2 changed files with 19 additions and 2 deletions

View File

@@ -350,12 +350,26 @@ char* ggetosstring(void) {
case PROCESSOR_INTEL_486:
cpu = 4;
break;
default:
case PROCESSOR_INTEL_PENTIUM:
cpu = 5;
case PROCESSOR_INTEL_IA64:
cpu = 64;
default:
cpu = 6;
break;
}
}
sprintf(processor, "i%d86", cpu);
switch(cpu) {
case 15:
sprintf(processor, "i786");
break;
case 64:
sprintf(processor, "IA64");
break;
default:
if( cpu>9 ) cpu= cpu%10+int(cpu/10)+1;
sprintf(processor, "i%d86", cpu);
}
}
}
break;