summaryrefslogtreecommitdiffstats
path: root/arch/nios2/platform
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 10:59:19 +0200
commitedebea98777d7090ea14bdce2e38e6798557729d (patch)
tree42d00a6c8e42ed6d2c04bf8d78c21fc2a0247ccf /arch/nios2/platform
parentnios2: Add BMX support (diff)
downloadlinux-edebea98777d7090ea14bdce2e38e6798557729d.tar.xz
linux-edebea98777d7090ea14bdce2e38e6798557729d.zip
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/platform')
-rw-r--r--arch/nios2/platform/Kconfig.platform9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/nios2/platform/Kconfig.platform b/arch/nios2/platform/Kconfig.platform
index b6a8bfd59491..74c1aaf588b8 100644
--- a/arch/nios2/platform/Kconfig.platform
+++ b/arch/nios2/platform/Kconfig.platform
@@ -90,6 +90,15 @@ config NIOS2_BMX_SUPPORT
the BMX Bit Manipulation Extension instructions. Enables
the -mbmx compiler flag.
+config NIOS2_CDX_SUPPORT
+ bool "Enable CDX instructions"
+ depends on NIOS2_ARCH_REVISION = 2
+ default n
+ help
+ Set to true if you configured the Nios II R2 to include
+ the CDX Bit Manipulation Extension instructions. Enables
+ the -mcdx compiler flag.
+
config NIOS2_FPU_SUPPORT
bool "Custom floating point instr support"
default n