summaryrefslogtreecommitdiffstats
path: root/arch/nios2/Makefile
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2017-04-19 13:19:02 +0200
committerLey Foon Tan <ley.foon.tan@intel.com>2017-05-08 16:59:19 +0800
commitedebea98777d7090ea14bdce2e38e6798557729d (patch)
tree42d00a6c8e42ed6d2c04bf8d78c21fc2a0247ccf /arch/nios2/Makefile
parent23460839b983d5d8d47fe90f341599f66523dd81 (diff)
downloadlinux-edebea98777d7090ea14bdce2e38e6798557729d.tar.bz2
nios2: Add CDX support
Add support for the CDX Code Density Extensions present in Nios II R2 . This introduces new 16bit instruction set to improve code density while retaining support for the 32bit Nios II R2 instructions. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Ley Foon Tan <lftan@altera.com>
Diffstat (limited to 'arch/nios2/Makefile')
-rw-r--r--arch/nios2/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile
index 74109c01eaea..8673a79dca9c 100644
--- a/arch/nios2/Makefile
+++ b/arch/nios2/Makefile
@@ -30,6 +30,7 @@ KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_HW_MUL_SUPPORT),-mhw-mul,-mno-hw-mul)
KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_HW_MULX_SUPPORT),-mhw-mulx,-mno-hw-mulx)
KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_HW_DIV_SUPPORT),-mhw-div,-mno-hw-div)
KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_BMX_SUPPORT),-mbmx,-mno-bmx)
+KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_CDX_SUPPORT),-mcdx,-mno-cdx)
KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_FPU_SUPPORT),-mcustom-fpu-cfg=60-1,)
KBUILD_CFLAGS += -fno-optimize-sibling-calls