selftests/powerpc: Enable range tests on 8xx in ptrace-hwbreak.c selftest
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 26 Nov 2019 17:43:30 +0000 (17:43 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jan 2020 10:31:14 +0000 (21:31 +1100)
8xx is now able to support any range length so range tests can be
enabled.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/081e3b4e3a17a8ec9fdac46b505e3a29ca15f209.1574790198.git.christophe.leroy@c-s.fr
tools/testing/selftests/powerpc/ptrace/ptrace-hwbreak.c

index 7deedbc16b0b721c86d198b2ff4255bdccc805ea..fc477dfe86a2ab2d40b908d7fdfc2b9a02f40618 100644 (file)
@@ -455,9 +455,8 @@ run_tests(pid_t child_pid, struct ppc_debug_info *dbginfo, bool dawr)
        if (dbginfo->features & PPC_DEBUG_FEATURE_DATA_BP_RANGE) {
                test_sethwdebug_exact(child_pid);
 
-               if (!is_8xx)
-                       test_sethwdebug_range_aligned(child_pid);
-               if (dawr && !is_8xx) {
+               test_sethwdebug_range_aligned(child_pid);
+               if (dawr || is_8xx) {
                        test_sethwdebug_range_unaligned(child_pid);
                        test_sethwdebug_range_unaligned_dar(child_pid);
                        test_sethwdebug_dawr_max_range(child_pid);