diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2008-09-05 15:45:57 +0200 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2008-09-05 15:45:57 +0200 |
commit | f081db932d833888ff90f82c12aa08a2567650f1 (patch) | |
tree | 6e5d59300b15d894c76493a1a4da4242c866935e /config.guess | |
parent | 3310c0a2193afbd1febdd9d711a1b5b1b26a36b1 (diff) | |
download | gmp-f081db932d833888ff90f82c12aa08a2567650f1.tar.gz |
Recognize recent AMD and Itanium CPUs.
Default X86 CPU recognition to configfsf.guess' value.
Diffstat (limited to 'config.guess')
-rwxr-xr-x | config.guess | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config.guess b/config.guess index 4e7ab6384..c4087c6c3 100755 --- a/config.guess +++ b/config.guess @@ -190,7 +190,8 @@ main () /* "GenuineIntel" */ switch ((getcpuid(3LL) >> 24) & 0xFF) { case 0x07: puts ("itanium"); break; - case 0x1F: puts ("itanium2"); break; + case 0x1F: puts ("itanium2"); break; /* McKinley, Madison */ + case 0x20: puts ("itanium2"); break; /* Montecito */ } } return 0; @@ -708,7 +709,7 @@ main () model = ((fms >> 4) & 0xf) + ((fms >> 12) & 0xf0); stepping = fms & 0xf; - modelstr = "i486"; + modelstr = "$guess_cpu"; if (strcmp (vendor_string, "GenuineIntel") == 0) { switch (family) @@ -747,6 +748,7 @@ main () modelstr = "athlon"; break; case 15: + case 16: modelstr = "athlon64"; break; } |