ARM720: help/usage updates
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 8 Jan 2010 00:30:09 +0000 (16:30 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 8 Jan 2010 00:30:09 +0000 (16:30 -0800)
Deprecate the "pass an instruction opcode" flavor of cp15
access in favor of the "arm mcr ..." and "arm mrc ..."
commands, which offer fewer ways to break things.

Use the same EBNF syntax in the code as for the user's guide.

Update User's Guide to say where to find those magic values
(which table in the ARM920 TRM).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
doc/openocd.texi
src/target/arm920t.c

index ea23bf722a1887746edb9c4bf9b30e64d0070986..bf7402d43827f524959f1a58f29eccf4b7070846 100644 (file)
@@ -5978,13 +5978,21 @@ is an ARM920T (2x16kByte cache) or ARM922T (2x8kByte cache).
 @deffn Command {arm920t cp15} regnum [value]
 Display cp15 register @var{regnum};
 else if a @var{value} is provided, that value is written to that register.
+This uses "physical access" and the register number is as
+shown in bits 38..33 of table 9-9 in the ARM920T TRM.
+(Not all registers can be written.)
 @end deffn
 
 @deffn Command {arm920t cp15i} opcode [value [address]]
-Interpreted access using cp15 @var{opcode}.
+@emph{DEPRECATED -- avoid using this.
+Use the @command{arm mrc} or @command{arm mcr} commands instead.}
+
+Interpreted access using ARM instruction @var{opcode}, which should
+be the value of either an MRC or MCR instruction
+(as shown tables 9-11, 9-12, and 9-13 in the ARM920T TRM).
 If no @var{value} is provided, the result is displayed.
 Else if that value is written using the specified @var{address},
-or using zero if no other address is not provided.
+or using zero if no other address is provided.
 @end deffn
 
 @deffn Command {arm920t read_cache} filename
index c5b7c88dcdca3fea2dfe171b1bfc494c474280da..29eb62d330ebe8f4baa872fc77f9e7bcbb97569f 100644 (file)
@@ -1384,35 +1384,39 @@ static int arm920t_mcr(struct target *target, int cpnum,
 static const struct command_registration arm920t_exec_command_handlers[] = {
        {
                .name = "cp15",
-               .handler = &arm920t_handle_cp15_command,
+               .handler = arm920t_handle_cp15_command,
                .mode = COMMAND_EXEC,
                .help = "display/modify cp15 register",
-               .usage = "<num> [value]",
+               .usage = "regnum [value]",
        },
        {
                .name = "cp15i",
-               .handler = &arm920t_handle_cp15i_command,
+               .handler = arm920t_handle_cp15i_command,
                .mode = COMMAND_EXEC,
-               .help = "display/modify cp15 (interpreted access)",
-               .usage = "<opcode> [value] [address]",
+               /* prefer using less error-prone "arm mcr" or "arm mrc" */
+               .help = "display/modify cp15 register using ARM opcode"
+                       " (DEPRECATED)",
+               .usage = "instruction [value [address]]",
        },
        {
                .name = "cache_info",
-               .handler = &arm920t_handle_cache_info_command,
+               .handler = arm920t_handle_cache_info_command,
                .mode = COMMAND_EXEC,
                .help = "display information about target caches",
        },
        {
                .name = "read_cache",
-               .handler = &arm920t_handle_read_cache_command,
+               .handler = arm920t_handle_read_cache_command,
                .mode = COMMAND_EXEC,
-               .help = "display I/D cache content",
+               .help = "dump I/D cache content to file",
+               .usage = "filename",
        },
        {
                .name = "read_mmu",
-               .handler = &arm920t_handle_read_mmu_command,
+               .handler = arm920t_handle_read_mmu_command,
                .mode = COMMAND_EXEC,
-               .help = "display I/D mmu content",
+               .help = "dump I/D mmu content to file",
+               .usage = "filename",
        },
        COMMAND_REGISTRATION_DONE
 };

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)