ARM v4/v5 target files: mrc and mcr help information is incorrect.14/914/2
authorKarl Kurbjun <kkurbjun@gmail.com>
Mon, 22 Oct 2012 18:20:10 +0000 (22 12:20 -0600)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 6 Nov 2012 17:30:57 +0000 (6 17:30 +0000)
The order of the mrc/mcr command matches the ARM Architecture Reference
Manual.  This patch corrects the help information for mrc/mcr.

Change-Id: I1f0e6a628a3644124591a6aa291b8a58cfd93b44
Signed-off-by: Karl Kurbjun <kkurbjun@gmail.com>
Reviewed-on: http://openocd.zylin.com/914
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/target/armv4_5.c

index e31c77e..7ba2deb 100644 (file)
@@ -1002,13 +1002,13 @@ static const struct command_registration arm_exec_command_handlers[] = {
                .mode = COMMAND_EXEC,
                .jim_handler = &jim_mcrmrc,
                .help = "write coprocessor register",
-               .usage = "cpnum op1 CRn op2 CRm value",
+               .usage = "cpnum op1 CRn CRm op2 value",
        },
        {
                .name = "mrc",
                .jim_handler = &jim_mcrmrc,
                .help = "read coprocessor register",
-               .usage = "cpnum op1 CRn op2 CRm",
+               .usage = "cpnum op1 CRn CRm op2",
        },
        {
                "semihosting",