selftests/powerpc: refactor entry and rfi_flush tests
authorDaniel Axtens <dja@axtens.net>
Tue, 17 Nov 2020 05:59:15 +0000 (16:59 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Nov 2020 12:47:23 +0000 (23:47 +1100)
commit0d239f3b03efc78fb5b290aff6c747fecd3b98cb
tree394f601c1777fb63ba77e10e92ad1d4d155c5c4d
parent89a83a0c69c81a25ce91002b90ca27ed86132a0a
selftests/powerpc: refactor entry and rfi_flush tests

For simplicity in backporting, the original entry_flush test contained
a lot of duplicated code from the rfi_flush test. De-duplicate that code.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/include/utils.h
tools/testing/selftests/powerpc/security/Makefile
tools/testing/selftests/powerpc/security/entry_flush.c
tools/testing/selftests/powerpc/security/flush_utils.c [new file with mode: 0644]
tools/testing/selftests/powerpc/security/flush_utils.h [new file with mode: 0644]
tools/testing/selftests/powerpc/security/rfi_flush.c