Skip to content

Commit 750bd41

Browse files
npigginmpe
authored andcommitted
powerpc/pseries: Fix hcall tracepoints with JUMP_LABEL=n
With JUMP_LABEL=n, hcall_tracepoint_refcount's address is being tested instead of its value. This results in the tracing slowpath always being taken unnecessarily. Fixes: 9a10ccb ("powerpc/pseries: move hcall_tracepoint_refcount out of .toc") Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230509091600.70994-1-npiggin@gmail.com
1 parent 1107388 commit 750bd41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/platforms/pseries/hvCall.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ BEGIN_FTR_SECTION; \
9191
b 1f; \
9292
END_FTR_SECTION(0, 1); \
9393
LOAD_REG_ADDR(r12, hcall_tracepoint_refcount) ; \
94+
ld r12,0(r12); \
9495
std r12,32(r1); \
9596
cmpdi r12,0; \
9697
bne- LABEL; \

0 commit comments

Comments
 (0)