aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2016-11-29 03:52:13 -0500
committerScott Wood <oss@buserror.net>2017-01-25 03:43:56 -0500
commitfa769d3f58e6b0db4ed9f5f05ef1f251692f90c6 (patch)
tree756702ca9d8bf135aa42eadbd512675f0d0b1c04
parentfdc8c4adb6a465b5873df97fcbd1cb332ade019b (diff)
powerpc/32: Enable HW_BREAKPOINT on BOOK3S
BOOK3S also has DABR register and capability to handle data breakpoints, so this patch enable it on all BOOK3S, not only 64 bits. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Scott Wood <oss@buserror.net>
-rw-r--r--arch/powerpc/Kconfig2
-rw-r--r--arch/powerpc/include/asm/processor.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index a8ee573fe610..1971ed4e0336 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -113,7 +113,7 @@ config PPC
113 select HAVE_PERF_REGS 113 select HAVE_PERF_REGS
114 select HAVE_PERF_USER_STACK_DUMP 114 select HAVE_PERF_USER_STACK_DUMP
115 select HAVE_REGS_AND_STACK_ACCESS_API 115 select HAVE_REGS_AND_STACK_ACCESS_API
116 select HAVE_HW_BREAKPOINT if PERF_EVENTS && PPC_BOOK3S_64 116 select HAVE_HW_BREAKPOINT if PERF_EVENTS && PPC_BOOK3S
117 select ARCH_WANT_IPC_PARSE_VERSION 117 select ARCH_WANT_IPC_PARSE_VERSION
118 select SPARSE_IRQ 118 select SPARSE_IRQ
119 select IRQ_DOMAIN 119 select IRQ_DOMAIN
diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h
index 1ba814436c73..2053a4b0914f 100644
--- a/arch/powerpc/include/asm/processor.h
+++ b/arch/powerpc/include/asm/processor.h
@@ -225,6 +225,7 @@ struct thread_struct {
225#ifdef CONFIG_PPC64 225#ifdef CONFIG_PPC64
226 unsigned long start_tb; /* Start purr when proc switched in */ 226 unsigned long start_tb; /* Start purr when proc switched in */
227 unsigned long accum_tb; /* Total accumulated purr for process */ 227 unsigned long accum_tb; /* Total accumulated purr for process */
228#endif
228#ifdef CONFIG_HAVE_HW_BREAKPOINT 229#ifdef CONFIG_HAVE_HW_BREAKPOINT
229 struct perf_event *ptrace_bps[HBP_NUM]; 230 struct perf_event *ptrace_bps[HBP_NUM];
230 /* 231 /*
@@ -233,7 +234,6 @@ struct thread_struct {
233 */ 234 */
234 struct perf_event *last_hit_ubp; 235 struct perf_event *last_hit_ubp;
235#endif /* CONFIG_HAVE_HW_BREAKPOINT */ 236#endif /* CONFIG_HAVE_HW_BREAKPOINT */
236#endif
237 struct arch_hw_breakpoint hw_brk; /* info on the hardware breakpoint */ 237 struct arch_hw_breakpoint hw_brk; /* info on the hardware breakpoint */
238 unsigned long trap_nr; /* last trap # on this thread */ 238 unsigned long trap_nr; /* last trap # on this thread */
239 u8 load_fp; 239 u8 load_fp;