mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 14:59:31 +08:00
* config/tc-mn10300.c (md_assemble): Format D5 instructions
are 7 bytes long. Write out instructions in big-endian format. Matsushita.
This commit is contained in:
@ -1,6 +1,11 @@
|
|||||||
|
Thu Oct 10 12:05:45 1996 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
|
* config/tc-mn10300.c (md_assemble): Format D5 instructions
|
||||||
|
are 7 bytes long. Write out instructions in big-endian format.
|
||||||
|
|
||||||
Tue Oct 8 14:56:15 1996 Jeffrey A Law (law@cygnus.com)
|
Tue Oct 8 14:56:15 1996 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
* config/tc-mn10300.h (md_assemble): Tweak further so
|
* config/tc-mn10300.c (md_assemble): Tweak further so
|
||||||
that all instructions are parsed correctly.
|
that all instructions are parsed correctly.
|
||||||
|
|
||||||
Tue Oct 8 13:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
|
Tue Oct 8 13:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
@ -677,7 +677,7 @@ keep_going:
|
|||||||
if (opcode->format == 4)
|
if (opcode->format == 4)
|
||||||
size = 5;
|
size = 5;
|
||||||
|
|
||||||
if (opcode->format == 5)
|
if (opcode->format == 5 || opcode->format == 10)
|
||||||
size = 7;
|
size = 7;
|
||||||
|
|
||||||
if (opcode->format == 8)
|
if (opcode->format == 8)
|
||||||
@ -686,16 +686,12 @@ keep_going:
|
|||||||
if (opcode->format == 9)
|
if (opcode->format == 9)
|
||||||
size = 6;
|
size = 6;
|
||||||
|
|
||||||
if (opcode->format == 10)
|
|
||||||
size = 8;
|
|
||||||
|
|
||||||
|
|
||||||
/* Write out the instruction. */
|
/* Write out the instruction. */
|
||||||
|
|
||||||
f = frag_more (size);
|
f = frag_more (size);
|
||||||
|
number_to_chars_bigendian (f, insn, size > 4 ? 4 : size);
|
||||||
if (size > 4)
|
if (size > 4)
|
||||||
size = 4;
|
number_to_chars_bigendian (f + 4, 0, size - 4);
|
||||||
md_number_to_chars (f, insn, size);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user