aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2016-02-01 18:21:37 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2016-02-02 11:09:17 +0000
commitb89807c67baf4f31125d151f2dc3532b3420964d (patch)
treebaadec8ce6cb863d75b3d463f097ce18dcb21e62 /opcodes
parent3f2f6cb5e8922b680de9d67ad83d3b571d3b2a46 (diff)
downloadgdb-b89807c67baf4f31125d151f2dc3532b3420964d.zip
gdb-b89807c67baf4f31125d151f2dc3532b3420964d.tar.gz
gdb-b89807c67baf4f31125d151f2dc3532b3420964d.tar.bz2
epiphany/disassembler: Improve alignment of output.
Always set the bytes_per_line field (of struct disassemble_info) to the same constant value, this is inline with the advice contained within include/dis-asm.h. Setting this field to a constant value will cause the disassembler output to be better aligned. cpu/ChangeLog: * epiphany.opc (epiphany_print_insn): Set info->bytes_per_line to a constant to better align disassembler output. opcodes/ChangeLog: * epiphany-dis.c: Regenerated from latest cpu files. gas/ChangeLog: * testsuite/gas/epiphany/sample.d: Update expected output.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/epiphany-dis.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 505b5e7..da14049 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * epiphany-dis.c: Regenerated from latest cpu files.
+
2016-02-01 Michael McConville <mmcco@mykolab.com>
* cgen-dis.c (count_decodable_bits): Use unsigned value for mask
diff --git a/opcodes/epiphany-dis.c b/opcodes/epiphany-dis.c
index 1c424df..2838b06 100644
--- a/opcodes/epiphany-dis.c
+++ b/opcodes/epiphany-dis.c
@@ -69,15 +69,16 @@ epiphany_print_insn (CGEN_CPU_DESC cd, bfd_vma pc, disassemble_info *info)
int status;
info->bytes_per_chunk = 2;
+ info->bytes_per_line = 4;
/* Attempt to read the base part of the insn. */
- info->bytes_per_line = buflen = cd->base_insn_bitsize / 8;
+ buflen = cd->base_insn_bitsize / 8;
status = (*info->read_memory_func) (pc, buf, buflen, info);
/* Try again with the minimum part, if min < base. */
if (status != 0 && (cd->min_insn_bitsize < cd->base_insn_bitsize))
{
- info->bytes_per_line = buflen = cd->min_insn_bitsize / 8;
+ buflen = cd->min_insn_bitsize / 8;
status = (*info->read_memory_func) (pc, buf, buflen, info);
}