aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2021-04-06 18:44:50 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2021-04-23 03:28:38 -0700
commitc1cbb7d8a18374a815b0be38d41ee31748c54d70 (patch)
tree42d31bd480b42d5ff6b808d71c459bcc6bc849b7 /opcodes
parent9fc299558896b4ff19c45a3e62459851e4d96cb9 (diff)
downloadbinutils-c1cbb7d8a18374a815b0be38d41ee31748c54d70.zip
binutils-c1cbb7d8a18374a815b0be38d41ee31748c54d70.tar.gz
binutils-c1cbb7d8a18374a815b0be38d41ee31748c54d70.tar.bz2
opcodes: xtensa: improve literal output
Output literals as 4-byte words, not as separate bytes. 2021-04-23 Max Filippov <jcmvbkbc@gmail.com> opcodes/ * xtensa-dis.c (print_insn_xtensa): Set info->bytes_per_chunk to 4 for literal disassembly.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/xtensa-dis.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 4775048..c26cddf 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2021-04-23 Max Filippov <jcmvbkbc@gmail.com>
+
+ * xtensa-dis.c (print_insn_xtensa): Set info->bytes_per_chunk
+ to 4 for literal disassembly.
+
2021-04-19 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
* aarch64-opc.c: Add new registers (RPAOS, RPALOS, PAALLOS, PAALL) support
diff --git a/opcodes/xtensa-dis.c b/opcodes/xtensa-dis.c
index 64c9a4e..e38fc39 100644
--- a/opcodes/xtensa-dis.c
+++ b/opcodes/xtensa-dis.c
@@ -381,6 +381,7 @@ print_insn_xtensa (bfd_vma memaddr, struct disassemble_info *info)
if (insn_block && (insn_block->flags & XTENSA_PROP_LITERAL)
&& (memaddr & 3) == 0 && bytes_fetched >= 4)
{
+ info->bytes_per_chunk = 4;
return 4;
}
else