[MPlayer-dev-eng] [PATCH] TOOLS/cpuinfo.c: correct k6_mtrr detection

Zuxy zuxy.meng at gmail.com
Mon Nov 21 11:36:20 CET 2005


Hi,

Two years ago Diego added '{ 32, "k6_mtrr", "Memory Type Range
Registers" }' to TOOLS/cpuinfo.c. However, the instruction "sal eax,
32" is in effect identical to "sal eax, 0", so what cpuinfo.c really
checked is bit 0 of the extended feature string, i.e. built-in FPU. As
a consequence k6_mtrr was reported on virtually every AMD CPU.
However, only some K6-2 and K6-III supports this type of MTRR,
including neither K6, which dosen't have any MTRR, nor Athlons, which
implement MTRR in a way compliant with Intel P6.

The attached patch corrects this, plus a lot of new feature bits that
pave the way for future optimizations to mplayer, including SSE3.

--
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpuinfo.c.diff
Type: application/octet-stream
Size: 3755 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051121/379bfe2b/attachment.obj>


More information about the MPlayer-dev-eng mailing list