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

@ -10,6 +10,9 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________
+ Fix P4 and IA64 cpu detection.
+ New reader key READfindnext (default: ^F6) added.
READfindall and READfindheader will not search from next message,
use READfindnext instead.

View File

@ -350,14 +350,28 @@ 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;
}
}
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;
case PROCESSOR_ARCHITECTURE_MIPS:
sprintf(processor, "mips%d000", si.wProcessorLevel);