- update trpm.
- factor all mode-specific options into mode-specific tables.
- treat an unspecified epoch as Epoch: 0 everywhere.
+ - detect athlon/duron with CMOV (PLD).
4.0.3 -> 4.0.4:
- solaris: translate i86pc to i386 (#57182).
ARGS="`echo $* | sed -e 's% [^ ]*CFLAGS=[^ ]*%%' -e 's% -[^-][^ ]*%%g' -e 's%--cache-file=.*$%%'`"
CC="$CC" CFLAGS="$CFLAGS" $db_dist/configure $ARGS \
- --enable-shared --enable-static --enable-debug --enable-rpc \
+ --enable-shared --enable-static --enable-rpc \
--with-uniquename=_rpmdb --srcdir=$db_dist
# XXX hack to get db-3.3.4 to configure properly
/*@modifies internalState @*/
{
int cpu;
- unsigned int tfms, junk, cap;
+ unsigned int tfms, junk, cap, capamd;
signal(SIGILL, model3);
- if(sigsetjmp(jenv, 1))
+ if (sigsetjmp(jenv, 1))
return 3;
- if(cpuid_eax(0x000000000)==0)
+ if (cpuid_eax(0x000000000)==0)
return 4;
+
cpuid(0x000000001, &tfms, &junk, &junk, &cap);
+ cpuid(0x800000001, &junk, &junk, &junk, &capamd);
cpu = (tfms>>8)&15;
- if(cpu < 6)
+ if (cpu < 6)
return cpu;
- if(cap & (1<<15))
+ if (cap & (1<<15)) {
+ /* CMOV supported? */
+ if (capamd & (1<<30))
+ return 7; /* 3DNOWEXT supported */
return 6;
+ }
return 5;
}