[FFmpeg-devel] Support for non-AltiVec PowerPC from Freescale

Måns Rullgård mans
Sat Jan 30 19:07:48 CET 2010


Ancoron Luciferis <ancoron at chaoslayer.de> writes:

> M?ns Rullg?rd wrote:
>> Ancoron Luciferis <ancoron at chaoslayer.de> writes:
>> 
>>> Hi *,
>>>
>>> just want to add something to the configure script to ease with
>>> compiling for non-altivec PPC CPUs like the MPC85xx from Freescale (e500
>>> v2 core).
>>>
>>> Here's the diff for the 'configure' script:
>>>
>>> --- configure.orig      2010-01-30 02:17:11.303086681 +0100
>>> +++ configure   2010-01-30 02:23:07.863083437 +0100
>>> @@ -1912,6 +1912,10 @@
>>>              cpuflags="-mcpu=cell"
>>>              enable ldbrx
>>>          ;;
>>> +        e500v2|E500V2)
>>> +            cpuflags="-mcpu=8548 -mhard-float -mfloat-gprs=double"
>>> +            disable altivec
>>> +        ;;
>>>      esac
>> 
>> Why use a different tag than the -mcpu flag uses?  The cases where we
>> match different names are mostly to due to variations in tools like
>> uname or if gcc uses a name different from what the cpu is commonly
>> known as (which may well be the case here).  Also, my gcc manual lists
>> -mcpu=8540 but not 8548.
>
> I used a different tag because the tag describes the actual CPU core
> used in several different CPUs, so it matches e.g. Freescales MPC8533,
> MPC8544 and a lot of others, but not e.g. the MPC8535 or MPC8536. Also
> there are -mcpu values for the other eXXX cores like "e300" or "e500mc"
> I would add another tag "e500" after the "e500v2" to match the rest of
> the PowerQUICC III family to the correct gcc options:
>
>> --- configure.orig      2010-01-30 02:17:11.303086681 +0100
>> +++ configure   2010-01-30 18:50:29.000000000 +0100
>> @@ -1912,6 +1912,14 @@
>>              cpuflags="-mcpu=cell"
>>              enable ldbrx
>>          ;;
>> +        e500v2|E500V2)
>> +            cpuflags="-mcpu=8548 -mhard-float -mfloat-gprs=double"
>> +            disable altivec
>> +        ;;
>> +        e500|E500)
>> +            cpuflags="-mcpu=8540 -mhard-float"
>> +            disable altivec
>> +        ;;
>>      esac
>>
>>  elif enabled x86; then

Thanks, applied.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list