OSDN Git Service

selftests/powerpc: Add scv versions of the basic TM syscall tests
authorNicholas Piggin <npiggin@gmail.com>
Fri, 3 Sep 2021 12:57:07 +0000 (22:57 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 13 Sep 2021 12:34:11 +0000 (22:34 +1000)
commit5379ef2a60431232b9bb01c6d3580b875123d723
treed0ec1fcc6d00a876e88681f4863579bf2e9f084f
parentb871895b148256f1721bc565d803860242755a0b
selftests/powerpc: Add scv versions of the basic TM syscall tests

The basic TM vs syscall test code hard codes an sc instruction for the
system call, which fails to cover scv even when the userspace libc has
support for it.

Duplicate the tests with hard coded scv variants so both are tested
when possible.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Fix build on old toolchains by using .long for scv]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210903125707.1601269-2-npiggin@gmail.com
tools/testing/selftests/powerpc/tm/tm-syscall-asm.S
tools/testing/selftests/powerpc/tm/tm-syscall.c