Apply patch from Marco Gritti and Jordan Crouse to correctly detect

AMD CPU's. Bug 9615.
This commit is contained in:
Soren Sandmann Pedersen 2007-02-06 16:37:45 -05:00
parent 9d3f537423
commit 908469b5fc

View file

@ -2123,7 +2123,9 @@ static unsigned int detectCPUFeatures(void) {
features |= SSE;
if (result & (1 << 26))
features |= SSE2;
if ((result & MMX) && !(result & SSE) && (strcmp(vendor, "AuthenticAMD") == 0)) {
if ((features & MMX) && !(features & SSE) &&
(strcmp(vendor, "AuthenticAMD") == 0 ||
strcmp(vendor, "Geode by NSC") == 0)) {
/* check for AMD MMX extensions */
#ifdef __GNUC__