[FFmpeg-devel] [PATCH 3/3] configure: loongson enable subarch mips64
Michael Niedermayer
michaelni at gmx.at
Sat May 9 18:33:25 CEST 2015
On Fri, May 08, 2015 at 06:17:59PM +0800, 周晓勇 wrote:
> From 1094ca8983b34492dece7da5cd09125dbda04726 Mon Sep 17 00:00:00 2001
> From: ZhouXiaoyong <zhouxiaoyong at loongson.cn>
> Date: Fri, 8 May 2015 09:08:00 +0800
> Subject: [PATCH 3/3] configure: loongson enable subarch mips64
>
> 1.Fedora19(Loongson) has released 32bit version and 64bit will comming soon.
> 2.On 32bit OS check_64bit returns subarch as mips, but mips64 expected.
> 3.Loongson-3 compatible with mips64r2 instruction set, and added on with MMI.
> 4.-march=loongson3a conflict with -mips64 and -mips64r2.
> 5.Loongson-3A1000 and Loongson-3B1500 not support mipsdspr1 or mipsdapr2.
> 6.The new CPU 3A2000 support mipsdspr2.
>
> Signed-off-by: ZhouXiaoyong <zhouxiaoyong at loongson.cn>
> ---
> configure | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/configure b/configure
> index 0f79874..4e6fddd 100755
> --- a/configure
> +++ b/configure
> @@ -2028,7 +2028,7 @@ mips32r2_deps="mips"
> mips32r5_deps="mips"
> mips64r6_deps="mips"
> msa_deps="mips"
> -loongson3_deps="mips"
> +loongson3_deps="mips64"
>
> altivec_deps="ppc"
> dcbzl_deps="ppc"
> @@ -3923,6 +3923,7 @@ elif enabled mips; then
> check_ldflags "-mabi=64"
> ;;
> loongson3*)
> + subarch=mips64
> enable mipsfpu
> disable mips32r2
> disable mips32r5
> @@ -3937,7 +3938,6 @@ elif enabled mips; then
> enable fast_cmov
> enable fast_unaligned
> disable aligned_stack
> - cpuflags="-march=$cpu"
> ;;
> generic)
> disable mips32r5
> @@ -4087,7 +4087,9 @@ case "$arch" in
> spic=$shared
> ;;
> mips)
> - check_64bit mips mips64 '_MIPS_SIM > 1'
> + if [[ ! "$cpu" =~ "loongson" ]]; then
> + check_64bit mips mips64 '_MIPS_SIM > 1'
> + fi
this is not valid POSIX code
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150509/f275db8f/attachment.asc>
More information about the ffmpeg-devel
mailing list