[MPlayer-users] configure and Cyrix C3
Guillaume POIRIER
poirierg at gmail.com
Fri Nov 11 23:28:34 CET 2005
Hi,
On 11/11/05, Andre Majorel <aym-reyalpm at teaser.fr> wrote:
> On 2005-11-11 21:50 +0100, Guillaume POIRIER wrote:
> > On 11/11/05, Andre Majorel <aym-reyalpm at teaser.fr> wrote:
> > > As of today, MPlayer HEAD does not build out of the box on
> > > Cyrix/VIA C3 systems. It compiles, but the resulting binary
> > > crashes with an "Illegal instruction" error.
> > >
> > > configure (correctly) detects a 686 CPU and (incorrectly) passes
> > > GCC the -march=i686 option. gcc -march=i686 produces code which
> > > uses the CMOV instruction, which is missing on the C3. This is
> > > true for all versions of GCC, as far as I know. Checked with 3.3.5
> > > and 4.0.2.
> >
> > Could you please try the attached patch with gcc-3.3 and 4.0?
>
> With your patch, ./configure sets TARGET_CPU to 686 and puts
> -march=c3-2 and -mtune=c3-2 in OPTFLAGS. I suspect this is
> incorrect. From gcc(1) :
>
> c3 Via C3 CPU with MMX and 3dNOW! instruction set support. (No
> scheduling is implemented for this chip.)
>
> c3-2
> Via C3-2 CPU with MMX and SSE instruction set support. (No
> scheduling is implemented for this chip.)
>
> >From /proc/cpuinfo :
>
> flags : fpu de tsc msr cx8 mtrr pge mmx 3dnow
>
> I'll report on the run-time behaviour when the compile is done.
Woops, I made a typo. New patch attached.
Guillaume
--
Reading doesn't hurt, really!
-- Dominik 'Rathann' Mierzejewski
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: C3-patch.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20051111/3c0f2f69/attachment.asc>
More information about the MPlayer-users
mailing list