[PATCH] [Nios2]: Disable emitting mul instructions by gcc
franck.jullien at gmail.com
franck.jullien at gmail.com
Mon Jun 13 16:33:28 EDT 2011
From: Franck Jullien <franck.jullien at gmail.com>
If we are using barebox on a NiosII/e variant, the
mul instruction is not supported and causes an exception.
Signed-off-by: Franck Jullien <franck.jullien at gmail.com>
---
arch/nios2/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile
index 6603da5..b94e074 100644
--- a/arch/nios2/Makefile
+++ b/arch/nios2/Makefile
@@ -1,4 +1,4 @@
-CPPFLAGS += -fno-strict-aliasing
+CPPFLAGS += -fno-strict-aliasing -mno-hw-mul
board-$(CONFIG_GENERIC) := generic
--
1.7.0.4
More information about the barebox
mailing list