diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-12-06 15:20:28 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-12-06 15:22:38 +0100 |
commit | 99835fa38b9dad3eb07a8029d51adc8edad59406 (patch) | |
tree | ca17e38e309d11343f15750ec9e17fd2a169b2e5 /utils/imxtools/sbtools | |
parent | 6eefc418dcfc51651da4917d6424b59eaa9770f5 (diff) | |
download | rockbox-99835fa38b9dad3eb07a8029d51adc8edad59406.tar.gz rockbox-99835fa38b9dad3eb07a8029d51adc8edad59406.zip |
imxtools/sbtools/sb1: fix parsing/debug bug about jump/call arguments
Change-Id: Ib406cfc03ced6c8689ed467c154d6a7447a34e5c
Diffstat (limited to 'utils/imxtools/sbtools')
-rw-r--r-- | utils/imxtools/sbtools/sb1.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/imxtools/sbtools/sb1.c b/utils/imxtools/sbtools/sb1.c index 06e29c4ecb..6bc4dd8cfa 100644 --- a/utils/imxtools/sbtools/sb1.c +++ b/utils/imxtools/sbtools/sb1.c | |||
@@ -563,7 +563,7 @@ struct sb1_file_t *sb1_read_memory(void *_buf, size_t filesize, void *u, | |||
563 | printf(YELLOW, " Addr:"); | 563 | printf(YELLOW, " Addr:"); |
564 | printf(RED, " %#x\n", cmd->addr); | 564 | printf(RED, " %#x\n", cmd->addr); |
565 | printf(YELLOW, " Argument:"); | 565 | printf(YELLOW, " Argument:"); |
566 | printf(RED, " %#x\n", inst.pattern); | 566 | printf(RED, " %#x\n", inst.argument); |
567 | break; | 567 | break; |
568 | default: | 568 | default: |
569 | printf(GREY, "WARNING: unknown SB command !\n"); | 569 | printf(GREY, "WARNING: unknown SB command !\n"); |
@@ -652,7 +652,9 @@ void sb1_dump(struct sb1_file_t *file, void *u, generic_printf_t cprintf) | |||
652 | printf(SEP, " | "); | 652 | printf(SEP, " | "); |
653 | printf(TEXT3, "crit=%d", inst->critical); | 653 | printf(TEXT3, "crit=%d", inst->critical); |
654 | printf(SEP, " | "); | 654 | printf(SEP, " | "); |
655 | printf(TEXT, "addr=0x%08x\n", inst->addr); | 655 | printf(TEXT, "addr=0x%08x", inst->addr); |
656 | printf(SEP, " | "); | ||
657 | printf(TEXT2, "arg=0x%08x\n", inst->argument); | ||
656 | break; | 658 | break; |
657 | case SB1_INST_LOAD: | 659 | case SB1_INST_LOAD: |
658 | printf(HEADER, "LOAD"); | 660 | printf(HEADER, "LOAD"); |