Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9bc2bd5d authored by Michael Neuling's avatar Michael Neuling Committed by Michael Ellerman
Browse files

powerpc: Update xmon to use ppc_breakpoint_available()



The 'bd' command will now print an error and not set the breakpoint on
P9.

Signed-off-by: default avatarMichael Neuling <mikey@neuling.org>
[mpe: Unsplit quoted string]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 85ce9a5d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1297,6 +1297,10 @@ bpt_cmds(void)
	static const char badaddr[] = "Only kernel addresses are permitted for breakpoints\n";
	int mode;
	case 'd':	/* bd - hardware data breakpoint */
		if (!ppc_breakpoint_available()) {
			printf("Hardware data breakpoint not supported on this cpu\n");
			break;
		}
		mode = 7;
		cmd = inchar();
		if (cmd == 'r')