[patch 2/4] nios2 disassembler update

Sandra Loosemore sandra@codesourcery.com
Thu Oct 23 03:24:00 GMT 2014


This patch implements some code refactoring in the Nios II disassembler 
intended to make it easier to add support for additional instruction 
formats and encodings.

The major changes here are:

- Global state (hash tables, etc) specific to a particular encoding has 
been encapsulated into an explicit state object.  This will make it 
easier to support e.g. disassembly of multiple objects using different 
encodings from the same objdump -d command line.

- nios2_print_insn_arg has been updated to use the new accessor macros 
introduced in part 1 of this series.

- Special handling for nop has been moved from nios2_disassemble to 
nios2_find_opcode_hash.

-Sandra

-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-refactor-dis.log
Type: text/x-log
Size: 588 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20141023/9d042872/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-refactor-dis.patch
Type: text/x-patch
Size: 12603 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20141023/9d042872/attachment-0001.bin>


More information about the Binutils mailing list