OSDN Git Service

2002-11-11 Klee Dienes <kdienes@apple.com>
authorKlee Dienes <kdienes@apple.com>
Mon, 18 Nov 2002 16:52:46 +0000 (16:52 +0000)
committerKlee Dienes <kdienes@apple.com>
Mon, 18 Nov 2002 16:52:46 +0000 (16:52 +0000)
commit92fc697902c6efedf863a294b54be331578dcd0a
treec52058ba142c2a15d06c188f42606b0ae65fed74
parente9e313ab9c7b2a69948f8b9f2157d3efff810fec
2002-11-11  Klee Dienes  <kdienes@apple.com>

* h8300.h (h8_opcode): Remove 'length' field.
(h8_opcodes): Mark as 'const' (both the declaration and
definition).  Modify initializer and initializer macros to no
longer initialize the length field.

2002-11-11  Klee Dienes  <kdienes@apple.com>

* h8300-dis.c: Include libiberty.h (for xmalloc).
(struct h8_instruction): New type, used to wrap h8_opcodes with a
length field (computed at run-time).
(h8_instructions): New variable.
(bfd_h8_disassemble_init): Allocate the storage for
h8_instructions.  Fill h8_instructions with pointers to the
appropriate opcode and the correct value for the length field.
(bfd_h8_disassemble): Iterate through h8_instructions instead of
h8_opcodes.
include/opcode/ChangeLog
include/opcode/h8300.h
opcodes/ChangeLog
opcodes/h8300-dis.c