Skip to content

Commit

Permalink
powerpc/xmon: Enable breakpoints on 8xx
Browse files Browse the repository at this point in the history
Since commit 4ad8622 ("powerpc/8xx: Implement hw_breakpoint"),
8xx has breakpoints so there is no reason to opt breakpoint logic
out of xmon for the 8xx.

Fixes: 4ad8622 ("powerpc/8xx: Implement hw_breakpoint")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/b0607f1113d1558e73476bb06db0ee16d31a6e5b.1608716197.git.christophe.leroy@csgroup.eu
  • Loading branch information
Christophe Leroy authored and Michael Ellerman committed Jan 31, 2021
1 parent 259149c commit 3066221
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/powerpc/xmon/xmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,6 @@ static long check_bp_loc(unsigned long addr)
return 1;
}

#ifndef CONFIG_PPC_8xx
static int find_free_data_bpt(void)
{
int i;
Expand All @@ -1395,7 +1394,6 @@ static int find_free_data_bpt(void)
printf("Couldn't find free breakpoint register\n");
return -1;
}
#endif

static void print_data_bpts(void)
{
Expand Down Expand Up @@ -1435,7 +1433,6 @@ bpt_cmds(void)
cmd = inchar();

switch (cmd) {
#ifndef CONFIG_PPC_8xx
static const char badaddr[] = "Only kernel addresses are permitted for breakpoints\n";
int mode;
case 'd': /* bd - hardware data breakpoint */
Expand Down Expand Up @@ -1497,7 +1494,6 @@ bpt_cmds(void)
force_enable_xmon();
}
break;
#endif

case 'c':
if (!scanhex(&a)) {
Expand Down

0 comments on commit 3066221

Please sign in to comment.