Ian Lance Taylor
1c214e4ceb
* ppc-opc.c (powerpc_operands): New operand type MBE to handle a
...
single number giving a bitmask for the MB and ME fields of an M
form instruction. Change NB to accept 32, and turn it into 0;
also turn 0 into 32 when disassembling. Seperated SH from NB.
(insert_mbe, extract_mbe): New functions.
(insert_nb, extract_nb): New functions.
(SC_MASK): Mask out SA and LK bits.
(powerpc_opcodes): Change "cal" to use RT, D, RA rather than RT,
RA, SI. Change "liu" and "cau" to use UI rather than SI. Mark
"bctr" and "bctrl" as accepted by POWER. Change "rlwimi",
"rlimi", "rlwimi.", "rlimi.", "rlwinm", "rlinm", "rlwinm.",
"rlinm.", "rlmi", "rlmi.", "rlwnm", "rlnm", "rlwnm.", "rlnm." to
use MBE rather than MB. Add "mfmq" and "mtmq" POWER instructions.
(powerpc_macros): Define table of macro definitions.
(powerpc_num_macros): Define.
1994-02-05 04:46:34 +00:00
Ian Lance Taylor
1211751d0b
* ppc-opc.c: New file. Opcode table for PowerPC, including
...
opcodes for POWER (RS/6000).
* ppc-dis.c: New file. PowerPC and Power (RS/6000) disassembler.
* Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
(CFILES): Add ppc-dis.c.
(ppc-dis.o, ppc-opc.o): New targets.
* configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.
1994-01-22 00:04:49 +00:00
Jeff Law
f037e5b0a4
* hppa-dis.c (print_insn_hppa): Handle 'N' in assembler template.
...
No space before 'u', 'f', or 'N'.
1994-01-18 04:06:52 +00:00
Jim Kingdon
4baf1a8c9e
* i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
...
farther than we should.
1994-01-17 00:47:38 +00:00
Jim Kingdon
a279b1f5ff
* i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
1994-01-17 00:38:56 +00:00
Peter Schauer
ba936a2ef5
* alpha-opc.h, alpha-dis.c (print_insn_alpha): Add
...
FLOAT_MEMORY_FORMAT_CODE, FLOAT_BRANCH_FORMAT_CODE, correct
FLOAT_FORMAT_CODE to put out floating point register names.
1993-11-08 07:53:45 +00:00
Jim Kingdon
de807a9b6a
Remove v9-specific entry
1993-11-01 20:08:35 +00:00
Jim Kingdon
bf04fba0f3
Add missing entry for change by Ian
1993-10-31 19:51:54 +00:00
Ian Lance Taylor
70643dbc13
* mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
...
larger than 32. Moved dsxx32 variants first for disassembler.
1993-10-27 15:52:00 +00:00
Steve Chamberlain
07bf1ce5b2
Add full lda information
1993-10-25 18:34:00 +00:00
Peter Schauer
bb959d0ab9
* alpha-opc.h: Add ldl_l, fix typo for ldq_u.
...
* alpha-dis.c (print_insn_alpha): Add code for PAL_FORMAT_CODE.
1993-10-08 09:43:36 +00:00
Ian Lance Taylor
9978cd4dc9
* mips-opc.c: Correct lwu opcode value (book had it wrong).
1993-10-05 21:49:04 +00:00
K. Richard Pixley
cb79d01dcf
* m88k-dis.c (m88kdis): comment change. Remove space after
...
printing mnemonic.
(printop): handle new arg types DEC and XREG for m88110.
1993-09-29 23:26:42 +00:00
Jim Kingdon
a0ad6c0f18
Tue Sep 28 19:20:16 1993 Jeffrey A Law (law@snake.cs.utah.edu)
...
* hppa-dis.c (print_insn_hppa): Handle 'z' operand
type for absolute branch addresses. Delete special
"ble" and "be" code in 'W' operand code.
1993-09-29 00:25:04 +00:00
Ian Lance Taylor
44647fcc26
* mips-dis.c, m88k-dis.c: Don't include libbfd.h. Changed calls
...
to BFD swapping routines to correspond to BFD name changes.
1993-09-07 18:27:18 +00:00
Ian Lance Taylor
547998d2c8
* mips-opc.c: Change div machine instruction to be z,s,t rather
...
than s,t. Change div macro to be d,v,t rather than d,s,t.
Likewise for divu, ddiv, ddivu. Added z,s,t case for drem, dremu,
rem and remu which generates only the corresponding div
instruction. This is for compatibility with the MIPS assembler,
which only generates the simple machine instruction when an
explicit destination of $0 is used.
* mips-dis.c (print_insn_arg): Handle 'z' (always register zero).
1993-09-02 17:14:10 +00:00
Ian Lance Taylor
a9c686adf5
* mips-opc.c: Move div machine instruction after macro forms.
...
Change d,s,t form to d,v,t. Likewise for divu, ddiv and ddivu.
This is for compatibility with the MIPS assembler, which only
generates the simple machine instruction when an explicit
destination of $0 is used.
1993-09-02 14:42:31 +00:00
Ian Lance Taylor
a5ba0d3f48
* mips-opc.c: From davidj@ICSI.Berkeley.EDU (David Johnson): Set
...
WR_31 hazard for bal, bgezal, bltzal.
1993-08-27 14:55:22 +00:00
Ian Lance Taylor
320cdccfb1
* mips-opc.c ("absu"): Removed.
...
("dabs"): Added.
1993-08-23 17:02:50 +00:00
Ian Lance Taylor
2bef2d3e57
* mips-opc.c: Added r6000 and r4000 instructions and macros.
...
Changed hazard information to distinguish between memory load
delays and coprocessor load delays.
1993-08-20 15:40:51 +00:00
Ian Lance Taylor
45b1470513
* mips-opc.c: li.d uses "T,L", not "S,F". Added li.s.
1993-08-18 19:40:37 +00:00
David MacKenzie
ed2fe80fb5
don't pass cpu to config.bfd
1993-08-17 16:45:41 +00:00
Ian Lance Taylor
e9a3035799
* m88k-dis.c (m88kdis): Make class unsigned.
1993-08-17 16:24:38 +00:00
Ian Lance Taylor
786e4f1a5f
* mips-opc.c: Added lwc1 E,A(b) to go with lwc1 T,A(b). Similarly
...
for swc1.
1993-08-12 16:07:37 +00:00
Ian Lance Taylor
11a0aaa785
* mips-opc.c: From davidj@ICSI.Berkeley.EDU (David Johnson): Took
...
coprocessor instructions out of #if 0, and made them use new
argument type "C".
1993-08-06 15:20:49 +00:00
Jim Kingdon
071689e1ad
* sparc-dis.c: Include ansidecl.h before opcodes/sparc.h.
1993-08-05 22:16:40 +00:00
Jim Kingdon
4d135f1c5a
* hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
...
* hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
1993-07-21 18:44:40 +00:00
Jim Kingdon
b2ad2e6473
* hppa-dis.c (print_insn_hppa): Use extract_5r_store for 'r'.
1993-07-20 00:22:35 +00:00
Jim Kingdon
981b3a2794
* hppa-dis.c (print_insn_hppa, case '>'): If next character is 'n',
...
don't output a space.
1993-07-19 21:39:36 +00:00
Jim Kingdon
17068960cb
* hppa-dis.c (float_format_names): 10 is undefined, and 11 is quad.
1993-07-19 20:54:04 +00:00
Jim Kingdon
32d2052a0d
* mips-opc.c: New file, containing opcode table from
...
../include/opcode/mips.h.
* Makefile.in: Add it.
1993-07-19 02:25:39 +00:00
Ian Lance Taylor
a4c0129924
* m88k-dis.c: New file, moved in from gdb and changed to use the
...
new dis-asm.h disassembler interface.
* Makefile.in (DIS_LIBS): Added m88k-dis.o.
(m88k-dis.o): New target.
1993-07-15 16:40:49 +00:00
Ian Lance Taylor
37609724c6
* mips-dis.c (print_insn_arg, _print_insn_mips): Made pointer to
...
argument string const char * to correspond to opcode/mips.h.
1993-07-13 17:06:07 +00:00
Ian Lance Taylor
fde326fbc9
* mips-dis.c: Updated to account for name changes in new version
...
of opcode/mips.h.
* Makefile.in: Added header file dependencies.
1993-07-07 17:37:11 +00:00
David Edelsohn
a5b5f81d79
(bfd_h8_disassemble): Correct fetching of instruction.
1993-07-04 06:49:43 +00:00
Per Bothner
5b6c633678
* m68k-dis.c (print_insn_arg): Change return value to byte count
...
or error code.
* m68k-dis.c: Re-write to detect invalid operands before
printing anything, so we can handle this the same way we
handle invalid opcodes.
1993-06-18 21:18:53 +00:00
Steve Chamberlain
219cf23283
Understand more opcodes.
1993-06-17 22:02:49 +00:00
Ian Lance Taylor
91ea6ab0b1
* hppa-dis.c: Include <ansidecl.h> and sysdep.h before other
...
header files.
1993-06-16 20:49:36 +00:00
Ken Raeburn
0a3c15c302
sparc-dis, configure/Makefile changes
1993-06-16 02:05:13 +00:00
Stu Grossman
5aef7c67a3
Changes from Jeff Law, law@cs.utah.edu:
...
* hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
Do not print a space before the completers specified by
'a' and 'd'.
1993-06-15 20:37:37 +00:00
Ken Raeburn
998f2ef343
mips-dis.c needn't choke on HOST_64_BIT
1993-06-11 23:39:25 +00:00
Ken Raeburn
112087edcc
Lots of changes from Jeff Law for HPPA support:
...
Clean up cruft in opcode table; improve opcodes library disassembler; make
gdb use opcodes library disassembler.
1993-06-11 23:20:54 +00:00
Jim Kingdon
e6fb7139ee
* m68k-dis.c (print_insn_{m68k,arg}): Add MMU codes.
1993-06-11 16:23:55 +00:00
Per Bothner
e0a8bcfb54
* Makefile.in (CSEARCH): Add -I../bfd for sysdep.h and bfd.h.
...
* configure.in: No longer need to configure to get sysdep.h.
1993-06-07 19:59:50 +00:00
Ken Raeburn
d698222b58
note a hppa-dis.c change i forgot to list before
1993-05-14 12:10:41 +00:00
Ken Raeburn
cfa8d0617d
add hppa disassembly code
1993-05-14 11:41:02 +00:00
John Gilmore
d802b9481b
Make "ta" the default trap instruction, "t" the alias.
1993-04-06 00:38:25 +00:00
Jim Kingdon
720b3aed42
New print_address for disassemblers, merge a29k and i960 disassemblers
1993-04-02 00:18:47 +00:00
Jim Kingdon
f7ed13c7d5
merge binutils and gdb sparc disassemblers
1993-04-01 16:56:06 +00:00
K. Richard Pixley
05545edc03
* h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
...
deliberately return non-zero to setjmp from longjmp. Otherwise
this code fails to compile.
1993-04-01 04:52:59 +00:00
Stu Grossman
cbe61cc651
* m68k-dis.c: Fix prototype for fetch_arg().
1993-04-01 01:05:39 +00:00
Jim Kingdon
5d0734a7d7
provide a new interface (using read_memory_func) to call the disassemblers
...
which copes with errors in a plausible way
1993-03-31 21:43:25 +00:00
John Gilmore
2cb563e6f4
Update for h8500-dis.c. (Avoid Sun Make vpath bug)
1993-03-23 02:55:56 +00:00
Steve Chamberlain
337110eab7
New file
1993-03-19 22:39:35 +00:00
Per Bothner
c840244e23
* mips-dis.c, z8k-dis.c: Converted to use interface defined in
...
../include/dis-asm.h.
* m68k-dis.c: New file (merge of ../binutils/m68k-pinsn.c
and ../gdb/m68k-pinsn.c).
* i386-dis.c: New file (merge of ../binutils/i386-pinsn.c
and ../gdb/i386-pinsn.c).
* m68881-ext.c: New file. Moved definition of
ext_format ext_format_68881 from ../gdb/m68k-tdep.c.
* Makefile.in: Adjust for new files.
* i386-dis.c: Patches from John Hassey (hassey@dg-rtp.dg.com ).
* m68k-dis.c: Recognize '9' placement code, so (say) pflush
can be dis-assembled.
1993-03-19 00:11:02 +00:00
David D. Zuhn
d5dcef6346
use canonical triple
1992-10-02 07:13:29 +00:00
Mike Werner
0843ea632e
Fix bug where all the opcodes were one off
1992-09-30 23:11:04 +00:00
Steve Chamberlain
b31a1f8114
added copyright notice
1992-09-30 14:42:53 +00:00
Steve Chamberlain
447bbbea3a
* z8k-dis.c (unparse_instr): prettier tabs
...
* z8kgen.c -> z8k-opc.h: bug fixes in tables
1992-09-29 19:21:34 +00:00
Stu Grossman
57cae454d4
* configure.in: Add ncr* configuration.
...
* z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
picayune ANSI compilers happy.
1992-09-25 19:54:06 +00:00
Ken Raeburn
3a15790239
fix typo in install rule
1992-09-18 21:02:18 +00:00
John Gilmore
68ca323803
* Makefile.in (make): Remove obsolete crud.
...
(sparc-opc.o): Avoid Sun Make VPATH bug.
1992-09-18 09:05:54 +00:00
K. Richard Pixley
e5bc6aaf85
remove subdir_do and references
1992-09-09 00:30:25 +00:00
Ken Raeburn
794a16b09d
Makefile.in bug fixes and sparc-opc.c addition
1992-09-08 21:12:26 +00:00
Steve Chamberlain
add1fb05e5
* z8k-dis.c: knows how to disassemble z8k stuff
1992-08-31 21:54:31 +00:00
Steve Chamberlain
a4ccc31032
* z8k-opc.h: new file full of z8000 opcodes
1992-08-31 20:48:44 +00:00