Skip to content

Commit 27d2a3e

Browse files
committed
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>
1 parent 3e78e4e commit 27d2a3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/microblaze/platform/Kconfig.platform‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ config OPT_LIB_FUNCTION
5353

5454
config OPT_LIB_ASM
5555
bool "Optimalized lib function ASM"
56-
depends on OPT_LIB_FUNCTION
56+
depends on OPT_LIB_FUNCTION && (XILINX_MICROBLAZE0_USE_BARREL = 1)
5757
default n
5858
help
5959
Allows turn on optimalized library function (memcpy and memmove).

0 commit comments

Comments
 (0)