powerpc/watchpoint: Support for 8xx in ptrace-hwbreak.c selftest
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Thu, 17 Oct 2019 09:32:04 +0000 (15:02 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 05:58:04 +0000 (16:58 +1100)
commit5dc7b419a5a746db6941154b06b932eaf2e692df
tree68f80187b4bc7da91c1ada39906e7b3aa3bed26e
parent949758a2f4e606a2575b3cfd0ea22c1d4784c673
powerpc/watchpoint: Support for 8xx in ptrace-hwbreak.c selftest

On the 8xx, signals are generated after executing the instruction. So
no need to manually single-step on 8xx. Also, 8xx __set_dabr()
currently ignores length and hardcodes the length to 8 bytes. So all
unaligned and 512 byte testcase will fail on 8xx. Ignore those
testcases on 8xx.

Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191017093204.7511-8-ravi.bangoria@linux.ibm.com
tools/testing/selftests/powerpc/ptrace/ptrace-hwbreak.c