David Kuehling
2008-Apr-29 12:42 UTC
[theora-dev] [PATCH] cpu support for VIA and Transmeta processors
A non-text attachment was scrubbed... Name: theora-cpuid-20080429.diff Type: text/x-diff Size: 1371 bytes Desc: not available Url : http://lists.xiph.org/pipermail/theora-dev/attachments/20080429/f76f0b7f/attachment.diff
Ralph Giles
2008-Apr-29 16:38 UTC
[theora-dev] [PATCH] cpu support for VIA and Transmeta processors
On 29-Apr-08, at 5:42 AM, David Kuehling wrote:> The attached patch adds proper CPU capability detection for Via C7, > Via > C3 and Transmeta (Crusoe, Efficeon) processors.Thanks! Committed as r14813. -r
Timothy B. Terriberry
2008-Apr-29 16:56 UTC
[theora-dev] [PATCH] cpu support for VIA and Transmeta processors
David Kuehling wrote:> Tested on a Via C7 and on a Transmeta Crusoe TM5800. Via C3 code was > just checked against the output of the 'cpuid' tool.I have done lots of clean-up to that file in r14814. The only interesting functional modification is that I made the Intel vs. AMD CPU flags tests exclusive for VIA processors. According to some random posting on mplayer-users (http://lists.mplayerhq.hu/pipermail/mplayer-users/2003-October/038847.html) the Nehemiah 693 no longer returns useful AMD-like flags, though it appears to return useful Intel-like flags, so overwriting the results of the Intel test with the AMD one would be bad. If you can point me to any official documentation for any of these processors, I would greatly appreciate it, as my cursory search did not find any. Please test the results and make sure I didn't screw anything up. I also added proper support for detecting the cpuid instruction on win32, instead of just blindly trying to use it. I have absolutely no idea if this works. Someone on win32 will need to test that it even compiles.