[MPlayer-dev-eng] cpuid vs 386 vs 486

pl p_l at gmx.fr
Thu Feb 7 01:55:22 CET 2002


On Tue, Feb 05, 2002 at 11:59:44PM +0100, Gabucino wrote:
> > btw, it was the bug...
> > ./configure sets __CPU__ according to /proc/cpuinfo, not possible to
> > override from configure options, nor runtime detect...
> Yes, setting it to 386 and mplayer works now! ;) Swaps like hell on 2megs
> RAM ;)
> 
> pl, can you fix this?

Dunno... buy more RAM ;)

As for configure, check the quick (& dirty) workaround attached.  It
should correctly set CPU if you do a --target=i[3-6]86-linux but it has
not really been  tested.

Feel free to commit it if it's ok for you.

-- 
Best regards,
  pl
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.383
diff -u -r1.383 configure
--- configure	5 Feb 2002 22:57:17 -0000	1.383
+++ configure	7 Feb 2002 01:00:34 -0000
@@ -592,6 +592,14 @@
       _march="-march=$host_arch"
       _mcpu="-mcpu=$host_arch"
       proc="$_target"
+      # Note: this has to be extended
+      case "$proc" in
+        i386*) iproc=386 ;;
+        i486*) iproc=486 ;;
+        i586*) iproc=586 ;;
+        i686*) iproc=686 ;;
+        *) iproc=586 ;;
+      esac
     fi
 
     echores "$proc"


More information about the MPlayer-dev-eng mailing list