mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-16 20:32:21 +08:00
* bfin-dis.c (print_insn_bfin): Do proper endian transform when
reading instruction from memory.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2005-10-18 Jie Zhang <jie.zhang@analog.com>
|
||||||
|
|
||||||
|
* bfin-dis.c (print_insn_bfin): Do proper endian transform when
|
||||||
|
reading instruction from memory.
|
||||||
|
|
||||||
2005-10-18 Nick Clifton <nickc@redhat.com>
|
2005-10-18 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* m32r-asm.c: Regenerate after updating m32r.opc.
|
* m32r-asm.c: Regenerate after updating m32r.opc.
|
||||||
|
@ -5765,13 +5765,18 @@ illegal_instruction:
|
|||||||
int
|
int
|
||||||
print_insn_bfin (bfd_vma pc, disassemble_info *outf)
|
print_insn_bfin (bfd_vma pc, disassemble_info *outf)
|
||||||
{
|
{
|
||||||
short iw0 = 0;
|
bfd_byte buf[2];
|
||||||
int status = 0;
|
unsigned short iw0;
|
||||||
|
int status;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
status = (*outf->read_memory_func) (pc & ~0x01, (bfd_byte *) & iw0, 2, outf);
|
|
||||||
|
status = (*outf->read_memory_func) (pc & ~0x01, buf, 2, outf);
|
||||||
|
iw0 = bfd_getl16 (buf);
|
||||||
|
|
||||||
count += _print_insn_bfin (pc, outf);
|
count += _print_insn_bfin (pc, outf);
|
||||||
|
|
||||||
/* Proper display of multiple issue instructions. */
|
/* Proper display of multiple issue instructions. */
|
||||||
|
|
||||||
if ((iw0 & 0xc000) == 0xc000 && (iw0 & BIT_MULTI_INS)
|
if ((iw0 & 0xc000) == 0xc000 && (iw0 & BIT_MULTI_INS)
|
||||||
&& ((iw0 & 0xe800) != 0xe800 /* not Linkage */ ))
|
&& ((iw0 & 0xe800) != 0xe800 /* not Linkage */ ))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user