From: Vicente Olivert Riera Date: Tue, 18 Oct 2016 13:24:21 +0100 Subject: [Buildroot] [PATCH] ci20_defconfig: disable madd instructions to avoid FPU bug Message-ID: <20161018122421.64118-1-Vincent.Riera@imgtec.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net MIPS Creator CI20 has an Ingenic JZ4780 SoC which features an XBurst CPU. The FPU on that CPU has a bug that can generate incorrect results in certain cases. The problem shows up when you have several of these instructions in sequence with dependant operands. Using the -mno-fused-madd option prevents gcc from emitting these instructions. More details here: - https://groups.google.com/forum/#!topic/mips-creator-ci20/spDB2jjbizM - https://android.googlesource.com/platform/build/+/90ce45347064210585a3a1f59a0514c22c753c8a Signed-off-by: Vicente Olivert Riera --- configs/ci20_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/ci20_defconfig b/configs/ci20_defconfig index 0455170..1894554 100644 --- a/configs/ci20_defconfig +++ b/configs/ci20_defconfig @@ -8,6 +8,8 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y # system BR2_TARGET_GENERIC_GETTY_PORT="ttyS4" +# Avoid FPU bug +BR2_TARGET_OPTIMIZATION="-mno-fused-madd" # kernel BR2_LINUX_KERNEL=y -- 2.10.1