diff options
author | Nick Clifton <nickc@redhat.com> | 2001-03-06 20:13:31 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-03-06 20:13:31 +0000 |
commit | 9d29e1b3e24ae5406ebe5890e3a4ff0d38d7aa72 (patch) | |
tree | c206c23887c646eae63eda9e01dd5c087af6c927 /opcodes/m68k-dis.c | |
parent | dc84e067cdd4117ecebfe1a1659bd0a590d1ac02 (diff) | |
download | gdb-9d29e1b3e24ae5406ebe5890e3a4ff0d38d7aa72.zip gdb-9d29e1b3e24ae5406ebe5890e3a4ff0d38d7aa72.tar.gz gdb-9d29e1b3e24ae5406ebe5890e3a4ff0d38d7aa72.tar.bz2 |
est of the changes for Coldfire V4
Diffstat (limited to 'opcodes/m68k-dis.c')
-rw-r--r-- | opcodes/m68k-dis.c | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/opcodes/m68k-dis.c b/opcodes/m68k-dis.c index 7f4b110..c41cb4b 100644 --- a/opcodes/m68k-dis.c +++ b/opcodes/m68k-dis.c @@ -1,5 +1,5 @@ /* Print Motorola 68k instructions. - Copyright 1986, 87, 89, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 + Copyright 1986, 87, 89, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001 Free Software Foundation, Inc. This file is free software; you can redistribute it and/or modify @@ -45,14 +45,18 @@ static int print_insn_arg PARAMS ((const char *, unsigned char *, unsigned char *, bfd_vma, disassemble_info *)); -CONST char * CONST fpcr_names[] = { - "", "%fpiar", "%fpsr", "%fpiar/%fpsr", "%fpcr", - "%fpiar/%fpcr", "%fpsr/%fpcr", "%fpiar/%fpsr/%fpcr"}; +CONST char * CONST fpcr_names[] = + { + "", "%fpiar", "%fpsr", "%fpiar/%fpsr", "%fpcr", + "%fpiar/%fpcr", "%fpsr/%fpcr", "%fpiar/%fpsr/%fpcr" + }; -static char *const reg_names[] = { - "%d0", "%d1", "%d2", "%d3", "%d4", "%d5", "%d6", "%d7", - "%a0", "%a1", "%a2", "%a3", "%a4", "%a5", "%fp", "%sp", - "%ps", "%pc"}; +static char *const reg_names[] = + { + "%d0", "%d1", "%d2", "%d3", "%d4", "%d5", "%d6", "%d7", + "%a0", "%a1", "%a2", "%a3", "%a4", "%a5", "%fp", "%sp", + "%ps", "%pc" + }; /* Sign-extend an (unsigned char). */ #if __STDC__ == 1 @@ -178,7 +182,7 @@ print_insn_m68k (memaddr, info) unsigned char *save_p; register const char *d; register unsigned long bestmask; - const struct m68k_opcode *best = 0; + const struct m68k_opcode *best; unsigned int arch_mask; struct private priv; bfd_byte *buffer = priv.the_buffer; @@ -228,6 +232,7 @@ print_insn_m68k (memaddr, info) /* Error return. */ return -1; + best = NULL; switch (info->mach) { default: @@ -255,6 +260,18 @@ print_insn_m68k (memaddr, info) case bfd_mach_m68060: arch_mask = m68060; break; + case bfd_mach_mcf5200: + arch_mask = mcf5200; + break; + case bfd_mach_mcf5206e: + arch_mask = mcf5206e; + break; + case bfd_mach_mcf5307: + arch_mask = mcf5407; + break; + case bfd_mach_mcf5407: + arch_mask = mcf5407; + break; } arch_mask |= m68881 | m68851; @@ -319,7 +336,7 @@ print_insn_m68k (memaddr, info) } } - if (best == 0) + if (best == NULL) goto invalid; /* Point at first word of argument data, |