Commit 94dd7d70 authored by Edward Wang's avatar Edward Wang

MIPS: tune for mips32r2

Although there are no non-MIPS32 R2 devices supported by Android 2.x+ on MIPS as of right now, MIPS32 is the minimum as of 4.2[1]. However, it should be safe to tune for
MIPS32R2.

[1] https://android.googlesource.com/device/generic/mips/+/refs/tags/android-4.2_r1/BoardConfig.mk
parent 9e5ed810
...@@ -136,7 +136,7 @@ elif [ ${ANDROID_ABI} = "armeabi" ] ; then ...@@ -136,7 +136,7 @@ elif [ ${ANDROID_ABI} = "armeabi" ] ; then
elif [ ${ANDROID_ABI} = "x86" ] ; then elif [ ${ANDROID_ABI} = "x86" ] ; then
EXTRA_CFLAGS="-march=pentium -ffunction-sections -funwind-tables -frtti -fno-exceptions" EXTRA_CFLAGS="-march=pentium -ffunction-sections -funwind-tables -frtti -fno-exceptions"
elif [ ${ANDROID_ABI} = "mips" ] ; then elif [ ${ANDROID_ABI} = "mips" ] ; then
EXTRA_CFLAGS="-march=mips32 -mhard-float" EXTRA_CFLAGS="-march=mips32 -mtune=mips32r2 -mhard-float"
# All MIPS Linux kernels since 2.4.4 will trap any unimplemented FPU # All MIPS Linux kernels since 2.4.4 will trap any unimplemented FPU
# instruction and emulate it, so we select -mhard-float. # instruction and emulate it, so we select -mhard-float.
# See http://www.linux-mips.org/wiki/Floating_point#The_Linux_kernel_and_floating_point # See http://www.linux-mips.org/wiki/Floating_point#The_Linux_kernel_and_floating_point
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment