diff options
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r-- | opcodes/arm-dis.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index 3360b82..884b5ae 100644 --- a/opcodes/arm-dis.c +++ b/opcodes/arm-dis.c @@ -4113,7 +4113,11 @@ print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little) if (force_thumb) is_thumb = TRUE; - info->display_endian = little ? BFD_ENDIAN_LITTLE : BFD_ENDIAN_BIG; + if (is_data) + info->display_endian = little ? BFD_ENDIAN_LITTLE : BFD_ENDIAN_BIG; + else + info->display_endian = little_code ? BFD_ENDIAN_LITTLE : BFD_ENDIAN_BIG; + info->bytes_per_line = 4; if (is_data) |