summaryrefslogtreecommitdiffstats
path: root/arch/arc/Kconfig
diff options
context:
space:
mode:
authorAlexey Brodkin2015-07-16 20:45:38 +0200
committerVineet Gupta2015-07-20 12:33:30 +0200
commitd05a76ab4d9ece9bd987a8c29e3f384ec9f7b211 (patch)
tree9d9dd4e73a0836a2702f98372bdb063341a01a6c /arch/arc/Kconfig
parentARC/time: Migrate to new 'set-state' interface (diff)
downloadkernel-qcow2-linux-d05a76ab4d9ece9bd987a8c29e3f384ec9f7b211.tar.gz
kernel-qcow2-linux-d05a76ab4d9ece9bd987a8c29e3f384ec9f7b211.tar.xz
kernel-qcow2-linux-d05a76ab4d9ece9bd987a8c29e3f384ec9f7b211.zip
ARCv2: add knob for DIV_REV in Kconfig
Being highly configurable core ARC HS among other features might be configured with or without DIV_REM_OPTION (hardware divider). That option when enabled adds following instructions: div, divu, rem, remu. By default ARC HS38 has this option enabled. So we add here possibility to disable usage of hardware divider by compiler. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/Kconfig')
-rw-r--r--arch/arc/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
index 91cf4055acab..f7cfa7d574f6 100644
--- a/arch/arc/Kconfig
+++ b/arch/arc/Kconfig
@@ -379,6 +379,10 @@ config ARC_HAS_LL64
dest operands with 2 possible source operands.
default y
+config ARC_HAS_DIV_REM
+ bool "Insn: div, divu, rem, remu"
+ default y
+
config ARC_HAS_RTC
bool "Local 64-bit r/o cycle counter"
default n