S12Z: opcodes: Separate the decoding of operations from their display.
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 3 Jan 2019 17:30:40 +0000 (18:30 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 3 Jan 2019 17:30:40 +0000 (18:30 +0100)
commitef1ad42b8b5f2c43d74582d2e629841c39962c18
treed35cab9b05e67ce5ba663688ebb0101774a47145
parent444b3faef5397eee5a06fe0e683d2ac3e6628fdc
S12Z: opcodes: Separate the decoding of operations from their display.

This change adds an abstraction layer between the decoding of machine
operations and their disassembled textual representation.  This allows
the decoding routines to be re-used for other purposes (at the expense)
of slightly slower running time.

ChangeLog: opcodes/

   * s12z-opc.c: New file.
   * s12z-opc.h: New file.
   * s12z-dis.c: Removed all code not directly related to display
     of instructions.  Used the interface provided by the new files
     instead.
   * Makefile.am (TARGET_LIBOPCODES_CFILES) Add s12z-opc.c.
   * Makefile.in: regenerate.
   * configure.ac (bfd_s12z_arch): Correct the dependencies.
   * configure: regenerate.
opcodes/ChangeLog
opcodes/Makefile.am
opcodes/Makefile.in
opcodes/configure
opcodes/configure.ac
opcodes/s12z-dis.c
opcodes/s12z-opc.c [new file with mode: 0644]
opcodes/s12z-opc.h [new file with mode: 0644]