aboutsummaryrefslogtreecommitdiff
path: root/opcodes/m10300-dis.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1998-06-24 19:04:06 +0000
committerJeff Law <law@redhat.com>1998-06-24 19:04:06 +0000
commit1c2a961d56876edf08a6b14345c219322bce5b4c (patch)
tree6d6d3d04c48a36862d70712953cfe436f271902e /opcodes/m10300-dis.c
parent59557be25d5f74044eab82bb2480086ebae0f43d (diff)
downloadgdb-1c2a961d56876edf08a6b14345c219322bce5b4c.zip
gdb-1c2a961d56876edf08a6b14345c219322bce5b4c.tar.gz
gdb-1c2a961d56876edf08a6b14345c219322bce5b4c.tar.bz2
* m10300-dis.c (print_insn_mn10300): 0xf7 opcode prefix specifies
4 byte instructions. (disassemble): Correctly handle FMT_D10 instructions.
Diffstat (limited to 'opcodes/m10300-dis.c')
-rw-r--r--opcodes/m10300-dis.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/m10300-dis.c b/opcodes/m10300-dis.c
index ab2fed9..b52efb3 100644
--- a/opcodes/m10300-dis.c
+++ b/opcodes/m10300-dis.c
@@ -145,6 +145,9 @@ print_insn_mn10300 (memaddr, info)
/* These are four byte insns. */
else if ((insn & 0xff) == 0xfa
+ /* start-sanitize-am33 */
+ || (insn & 0xff) == 0xf7
+ /* end-sanitize-am33 */
|| (insn & 0xff) == 0xfb)
{
status = (*info->read_memory_func) (memaddr, buffer, 4, info);
@@ -312,7 +315,8 @@ disassemble (memaddr, info, insn, size)
}
/* start-sanitize-am33 */
else if (size == 4
- && op->format == FMT_D7)
+ && (op->format == FMT_D7
+ || op->format == FMT_D10))
{
extension = 0;
}