summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2009-10-26 09:56:48 +0100
committerMichal Simek <monstr@monstr.eu>2009-12-14 08:45:01 +0100
commit27d2a3ee5e9874e400b59d802405b58b65a8a723 (patch)
tree4953836efbe75ab25c68018a8588bf662ffe64f8
parent3e78e4e5eaf6a85b8cdcc880bb46c1e4b4b79cc2 (diff)
downloadop-kernel-dev-27d2a3ee5e9874e400b59d802405b58b65a8a723.zip
op-kernel-dev-27d2a3ee5e9874e400b59d802405b58b65a8a723.tar.gz
microblaze: Enable asm optimization only for HW with barrel-shifter
Asm code uses barrel-shifter instruction that's why we have to protect cases when HW don't have it. Reported-by: John Linn <john.linn@xilinx.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
-rw-r--r--arch/microblaze/platform/Kconfig.platform2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/platform/Kconfig.platform b/arch/microblaze/platform/Kconfig.platform
index 28e418a..669c7ee 100644
--- a/arch/microblaze/platform/Kconfig.platform
+++ b/arch/microblaze/platform/Kconfig.platform
@@ -53,7 +53,7 @@ config OPT_LIB_FUNCTION
config OPT_LIB_ASM
bool "Optimalized lib function ASM"
- depends on OPT_LIB_FUNCTION
+ depends on OPT_LIB_FUNCTION && (XILINX_MICROBLAZE0_USE_BARREL = 1)
default n
help
Allows turn on optimalized library function (memcpy and memmove).
OpenPOWER on IntegriCloud