[COMMITTED] opcodes: xtensa: improve literal output

Message ID 20210423103330.29008-1-jcmvbkbc@gmail.com
State New
Headers show
Series
  • [COMMITTED] opcodes: xtensa: improve literal output
Related show

Commit Message

Luis Machado via Binutils April 23, 2021, 10:33 a.m.
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.
---
 opcodes/xtensa-dis.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.20.1

Patch

diff --git a/opcodes/xtensa-dis.c b/opcodes/xtensa-dis.c
index 64c9a4ed4e05..e38fc39f4e7e 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