diff options
author | Ravi Bangoria <ravi.bangoria@linux.ibm.com> | 2020-09-02 09:59:41 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-09-15 22:13:19 +1000 |
commit | edc8dd99b29e4d705c45e2a3a6c01b096ee056db (patch) | |
tree | a4c11d255b80af1ef92b189c4a53b4c65ca7c113 /arch/powerpc/kernel/ptrace/ptrace-noadv.c | |
parent | 9b6b7c680cc20971444d9f836e49fc98848bcd0a (diff) |
powerpc/watchpoint: Move DAWR detection logic outside of hw_breakpoint.c
Power10 hw has multiple DAWRs but hw doesn't tell which DAWR caused
the exception. So we have a sw logic to detect that in hw_breakpoint.c.
But hw_breakpoint.c gets compiled only with CONFIG_HAVE_HW_BREAKPOINT=Y.
Move DAWR detection logic outside of hw_breakpoint.c so that it can be
reused when CONFIG_HAVE_HW_BREAKPOINT is not set.
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/20200902042945.129369-5-ravi.bangoria@linux.ibm.com
Diffstat (limited to 'arch/powerpc/kernel/ptrace/ptrace-noadv.c')
0 files changed, 0 insertions, 0 deletions