1 diff -ur rpm-4.0.2/lib/rpmrc.c rpm-4.0.2-new/lib/rpmrc.c
2 --- rpm-4.0.2/lib/rpmrc.c Tue Mar 13 13:55:25 2001
3 +++ rpm-4.0.2-new/lib/rpmrc.c Fri Jan 25 01:02:59 2002
5 static inline int RPMClass(void)
8 - unsigned int tfms, junk, cap;
9 + unsigned int tfms, junk, cap, capamd;
11 signal(SIGILL, model3);
15 if(cpuid_eax(0x000000000)==0)
17 - cpuid(0x000000001, &tfms, &junk, &junk, &cap);
19 + cpuid(0x00000001, &tfms, &junk, &junk, &cap);
20 + cpuid(0x80000001, &junk, &junk, &junk, &capamd);
31 + // it supports CMOV instruction
32 + if (capamd & (1<<30))
33 + // it supports 3DNOWEXT
44 if (strchr("3456", un.machine[1]) && un.machine[1] != class)
45 un.machine[1] = class;
47 + strcpy(un.machine,"athlon");