[MPlayer-dev-eng] [PATCH] to detect powerpc 750 cpus
Dominik Mierzejewski
dominik at rangers.eu.org
Thu Jun 6 20:36:42 CEST 2002
On Thursday, 06 June 2002, Colin Leroy wrote:
> On Thu, 6 Jun 2002 18:29:09 +0200 Felix Buenemann
> <atmosfear at users.sourceforge.net> wrote:
>
> >
> > > here's a patch that allows passing -mcpu=750 for relevant cpus (G3
> > > ppc).-march=ppc isn't passed as cc doesn't like it.
> > thanks, applied. What about -march=750? And could you also add code for
> > other ppc cpus?
>
> Hi,
> I'll be happy too, but can't put my hands on a G4 or others.
> People using 601,603,604 and G4 powerpc cpus are welcomed to send in what
> their /proc/cpuinfo says :-)
>
> -march=750 makes cc unhappy too ("cc1: Invalid option `arch=750'" at
> mplayer.c compilation).
Try -mtune=750.
According to gcc infopage:
File: gcc.info, Node: RS/6000 and PowerPC Options, Next: RT Options, Prev: M8
[...]
`-mcpu=CPU_TYPE'
Set architecture type, register usage, choice of mnemonics, and
instruction scheduling parameters for machine type CPU_TYPE.
Supported values for CPU_TYPE are `rios', `rios1', `rsc', `rios2',
`rs64a', `601', `602', `603', `603e', `604', `604e', `620', `630',
`740', `750', `power', `power2', `powerpc', `403', `505', `801',
`821', `823', and `860' and `common'. `-mcpu=power',
`-mcpu=power2', `-mcpu=powerpc', and `-mcpu=powerpc64' specify
generic POWER, POWER2, pure 32-bit PowerPC (i.e., not MPC601), and
64-bit PowerPC architecture machine types, with an appropriate,
generic processor model assumed for scheduling purposes.
[...]
`-mtune=CPU_TYPE'
Set the instruction scheduling parameters for machine type
CPU_TYPE, but do not set the architecture type, register usage,
choice of mnemonics like `-mcpu='CPU_TYPE would. The same values
for CPU_TYPE are used for `-mtune='CPU_TYPE as for
`-mcpu='CPU_TYPE. The `-mtune='CPU_TYPE option overrides the
`-mcpu='CPU_TYPE option in terms of instruction scheduling
parameters.
[...]
Looks like -mtune for PPC is like -mcpu for x86 and -mcpu for PPC is like
-march for x86. What a mess.
--
MPlayer RPMs: http://msp-190.man.olsztyn.pl/~dominik/linux/pkgs/mplayer/
"The Universe doesn't give you any points for doing things that are easy."
-- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"
Dominik 'Rathann' Mierzejewski <rathann(at)rangers.eu.org>
More information about the MPlayer-dev-eng
mailing list