microblaze: Enable asm optimization only for HW with barrel-shifter
authorMichal Simek <monstr@monstr.eu>
Mon, 26 Oct 2009 08:56:48 +0000 (09:56 +0100)
committerMichal Simek <monstr@monstr.eu>
Mon, 14 Dec 2009 07:45:01 +0000 (08:45 +0100)
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>
arch/microblaze/platform/Kconfig.platform

index 28e418a..669c7ee 100644 (file)
@@ -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).