Skip to content

Commit 6ba4a2d

Browse files
committed
selftests/powerpc: Always build the tm-poison test 64-bit
The tm-poison test includes inline asm which is 64-bit only, so the test must be built 64-bit in order to work. Otherwise it fails, eg: # file tm-poison tm-poison: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV) ... # ./tm-poison test: tm_poison_test Unknown value 0x1fff71150 leaked into f31! Unknown value 0x1fff710c0 leaked into vr31! failure: tm_poison_test Fixes: a003365 ("powerpc/tm: Add tm-poison test") Signed-off-by: Michael Ellerman <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d16a58f commit 6ba4a2d

File tree

1 file changed

+1
-0
lines changed
  • tools/testing/selftests/powerpc/tm

1 file changed

+1
-0
lines changed

tools/testing/selftests/powerpc/tm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ $(OUTPUT)/tm-unavailable: CFLAGS += -O0 -pthread -m64 -Wno-error=uninitialized -
2525
$(OUTPUT)/tm-trap: CFLAGS += -O0 -pthread -m64
2626
$(OUTPUT)/tm-signal-context-force-tm: CFLAGS += -pthread -m64
2727
$(OUTPUT)/tm-signal-pagefault: CFLAGS += -pthread -m64
28+
$(OUTPUT)/tm-poison: CFLAGS += -m64
2829

2930
SIGNAL_CONTEXT_CHK_TESTS := $(patsubst %,$(OUTPUT)/%,$(SIGNAL_CONTEXT_CHK_TESTS))
3031
$(SIGNAL_CONTEXT_CHK_TESTS): tm-signal.S

0 commit comments

Comments
 (0)