From d7d857a1896005df53956565644b138a76a1f0ec Mon Sep 17 00:00:00 2001 From: David Brownell Date: Mon, 16 Nov 2009 16:36:12 -0800 Subject: ARM11: register (most) standard ARM commands Have ARM11 register the "standard" ARM commands. For now, only disassembly really works. Signed-off-by: David Brownell --- src/target/armv4_5.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/target/armv4_5.c') diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c index 7c4861ff..b60b8b27 100644 --- a/src/target/armv4_5.c +++ b/src/target/armv4_5.c @@ -378,6 +378,12 @@ COMMAND_HANDLER(handle_armv4_5_reg_command) if (armv4_5_mode_to_number(armv4_5->core_mode)==-1) return ERROR_FAIL; + if (!armv4_5->full_context) { + command_print(cmd_ctx, "error: target doesn't support %s", + CMD_NAME); + return ERROR_FAIL; + } + for (num = 0; num <= 15; num++) { output_len = 0; @@ -522,7 +528,8 @@ int armv4_5_register_commands(struct command_context *cmd_ctx) "display/change ARM core state "); register_command(cmd_ctx, armv4_5_cmd, "disassemble", handle_armv4_5_disassemble_command, COMMAND_EXEC, - "disassemble instructions
[ ['thumb']]"); + "disassemble instructions " + "
[ ['thumb']]"); return ERROR_OK; } -- cgit v1.2.3