Rayson Ho wrote: > On Tue, Mar 3, 2009 at 9:03 AM, "C. Bergstr?m" <cbergstrom at netsyncro.com> > wrote: > >> This code has exactly what we want and may be more portable. (Along with if >> we change it minimally to fit our need we can just continue to merge >> changes.) >> >> http://svn.mplayerhq.hu/mplayer/trunk/cpuinfo.c?view=markup >> > > Ah, looks good. Didn't know that someone has already written code to > parse the CPUID information in a form that is mostly reusable. Then I > guess we should use the code as the license is compatible with Open64. > > If we were to start from scratch, I would use read > "/dev/cpu/self/cpuid" (see: > http://docs.sun.com/app/docs/doc/819-2254/cpuid-7d?a=view ) so that > the port to SPARC is a bit easier. However, getting Open64 to generate > SPARC code is at least 10 times more work than the current port, and I > believe whoever wants to get the SPARC port done wonldn't mind writing > an extra few more lines of new code :) > > > Also: > - I've downloaded the patch but have not started to review it yet... I > will do it soon! > - what exactly is the problem of point number 2 (below)?? > Oh.. nothing too big.. just that it dumps core and and then the debugger dumps core trying to debug it... and I completely agree whoever is porting the whole thing to sparc will not mind the extra code.. Look forward to your comments...
./C