binutils-gdb/include/opcode
Sandra Loosemore 96ba42336f Refactoring/cleanup of nios2 opcodes and assembler code.
2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>

	include/opcode/
	* nios2.h (enum iw_format_type): New.
	(struct nios2_opcode): Update comments.  Add size and format fields.
	(NIOS2_INSN_OPTARG): New.
	(REG_NORMAL, REG_CONTROL, REG_COPROCESSOR): New.
	(struct nios2_reg): Add regtype field.
	(GET_INSN_FIELD, SET_INSN_FIELD): Delete.
	(IW_A_LSB, IW_A_MSB, IW_A_SZ, IW_A_MASK): Delete.
	(IW_B_LSB, IW_B_MSB, IW_B_SZ, IW_B_MASK): Delete.
	(IW_C_LSB, IW_C_MSB, IW_C_SZ, IW_C_MASK): Delete.
	(IW_IMM16_LSB, IW_IMM16_MSB, IW_IMM16_SZ, IW_IMM16_MASK): Delete.
	(IW_IMM26_LSB, IW_IMM26_MSB, IW_IMM26_SZ, IW_IMM26_MASK): Delete.
	(IW_OP_LSB, IW_OP_MSB, IW_OP_SZ, IW_OP_MASK): Delete.
	(IW_OPX_LSB, IW_OPX_MSB, IW_OPX_SZ, IW_OPX_MASK): Delete.
	(IW_SHIFT_IMM5_LSB, IW_SHIFT_IMM5_MSB): Delete.
	(IW_SHIFT_IMM5_SZ, IW_SHIFT_IMM5_MASK): Delete.
	(IW_CONTROL_REGNUM_LSB, IW_CONTROL_REGNUM_MSB): Delete.
	(IW_CONTROL_REGNUM_SZ, IW_CONTROL_REGNUM_MASK): Delete.
	(OP_MASK_OP, OP_SH_OP): Delete.
	(OP_MASK_IOP, OP_SH_IOP): Delete.
	(OP_MASK_IRD, OP_SH_IRD): Delete.
	(OP_MASK_IRT, OP_SH_IRT): Delete.
	(OP_MASK_IRS, OP_SH_IRS): Delete.
	(OP_MASK_ROP, OP_SH_ROP): Delete.
	(OP_MASK_RRD, OP_SH_RRD): Delete.
	(OP_MASK_RRT, OP_SH_RRT): Delete.
	(OP_MASK_RRS, OP_SH_RRS): Delete.
	(OP_MASK_JOP, OP_SH_JOP): Delete.
	(OP_MASK_IMM26, OP_SH_IMM26): Delete.
	(OP_MASK_RCTL, OP_SH_RCTL): Delete.
	(OP_MASK_IMM5, OP_SH_IMM5): Delete.
	(OP_MASK_CACHE_OPX, OP_SH_CACHE_OPX): Delete.
	(OP_MASK_CACHE_RRS, OP_SH_CACHE_RRS): Delete.
	(OP_MASK_CUSTOM_A, OP_SH_CUSTOM_A): Delete.
	(OP_MASK_CUSTOM_B, OP_SH_CUSTOM_B): Delete.
	(OP_MASK_CUSTOM_C, OP_SH_CUSTOM_C): Delete.
	(OP_MASK_CUSTOM_N, OP_SH_CUSTOM_N): Delete.
	(OP_<insn>, OPX_<insn>, OP_MATCH_<insn>, OPX_MATCH_<insn>): Delete.
	(OP_MASK_<insn>, OP_MASK): Delete.
	(GET_IW_A, GET_IW_B, GET_IW_C, GET_IW_CONTROL_REGNUM): Delete.
	(GET_IW_IMM16, GET_IW_IMM26, GET_IW_OP, GET_IW_OPX): Delete.
	Include nios2r1.h to define new instruction opcode constants
	and accessors.
	(nios2_builtin_opcodes): Rename to nios2_r1_opcodes.
	(bfd_nios2_num_builtin_opcodes): Rename to nios2_num_r1_opcodes.
	(bfd_nios2_num_opcodes): Rename to nios2_num_opcodes.
	(NUMOPCODES, NUMREGISTERS): Delete.
	* nios2r1.h: New file.

	opcodes/
	* nios2-opc.c (nios2_builtin_regs): Add regtype field initializers.
	(nios2_builtin_opcodes): Rename to nios2_r1_opcodes.  Use new
	MATCH_R1_<insn> and MASK_R1_<insn> macros in initializers.  Add
	size and format initializers.  Merge 'b' arguments into 'j'.
	(NIOS2_NUM_OPCODES): Adjust definition.
	(bfd_nios2_num_builtin_opcodes): Rename to nios2_num_r1_opcodes.
	(nios2_opcodes): Adjust.
	(bfd_nios2_num_opcodes): Rename to nios2_num_opcodes.
	* nios2-dis.c (INSNLEN): Update comment.
	(nios2_hash_init, nios2_hash): Delete.
	(OPCODE_HASH_SIZE): New.
	(nios2_r1_extract_opcode): New.
	(nios2_disassembler_state): New.
	(nios2_r1_disassembler_state): New.
	(nios2_init_opcode_hash): Add state parameter.  Adjust to use it.
	(nios2_find_opcode_hash): Use state object.
	(bad_opcode): New.
	(nios2_print_insn_arg): Add op parameter.  Use it to access
	format.  Remove 'b' case.
	(nios2_disassemble): Remove special case for nop.  Remove
	hard-coded instruction size.

	gas/
	* config/tc-nios2.c (nios2_insn_infoS): Add constant_bits field.
	(nios2_arg_infoS, nios2_arg_hash, nios2_arg_lookup): Delete.
	(nios2_control_register_arg_p): Delete.
	(nios2_coproc_reg): Delete.
	(nios2_relax_frag): Remove hard-coded instruction size.
	(md_convert_frag): Use new insn accessor macros.
	(nios2_diagnose_overflow): Remove hard-coded instruction size.
	(md_apply_fix): Likewise.
	(bad_opcode): New.
	(nios2_parse_reg): New.
	(nios2_assemble_expression): Remove prev_reloc parameter.  Adjust
	uses and callers.
	(nios2_assemble_arg_c): New.
	(nios2_assemble_arg_d): New.
	(nios2_assemble_arg_s): New.
	(nios2_assemble_arg_t): New.
	(nios2_assemble_arg_i): New.
	(nios2_assemble_arg_u): New.
	(nios2_assemble_arg_o): New.
	(nios2_assemble_arg_j): New.
	(nios2_assemble_arg_l): New.
	(nios2_assemble_arg_m): New.
	(nios2_assemble_args): New.
	(nios2_assemble_args_dst): Delete.
	(nios2_assemble_args_tsi): Delete.
	(nios2_assemble_args_tsu): Delete.
	(nios2_assemble_args_sto): Delete.
	(nios2_assemble_args_o): Delete.
	(nios2_assemble_args_is): Delete.
	(nios2_assemble_args_m): Delete.
	(nios2_assemble_args_s): Delete.
	(nios2_assemble_args_tis): Delete.
	(nios2_assemble_args_dc): Delete.
	(nios2_assemble_args_cs): Delete.
	(nios2_assemble_args_ds): Delete.
	(nios2_assemble_args_ldst): Delete.
	(nios2_assemble_args_none): Delete.
	(nios2_assemble_args_dsj): Delete.
	(nios2_assemble_args_d): Delete.
	(nios2_assemble_args_b): Delete.
	(nios2_arg_info_structs): Delete.
	(NIOS2_NUM_ARGS): Delete.
	(nios2_consume_arg): Remove insn parameter.  Use new macros.
	Don't check register arguments here.  Remove 'b' case.
	(nios2_consume_separator): Move check for missing separators to...
	(nios2_parse_args): ...here.  Remove special case for optional
	arguments.
	(output_insn): Avoid using hard-coded insn size.
	(output_ubranch): Likewise.
	(output_cbranch): Likewise.
	(output_call): Use new macros.
	(output_addi): Likewise.
	(output_ori): Likewise.
	(output_xori): Likewise.
	(output_movia): Likewise.
	(md_begin): Remove nios2_arg_info_structs initialization.
	(md_assemble): Initialize constant_bits field.  Use
	nios2_parse_args instead of looking up parse function in hash table.

	gdb/
	* nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
	accessors and constants from nios2 opcodes update.
	(nios2_get_next_pc): Likewise.
2014-10-23 09:54:15 -07:00
..
aarch64.h [PATCH/AArch64] Implement LSE feature 2014-09-03 14:53:53 +01:00
alpha.h Update copyright years 2014-03-05 22:16:15 +10:30
arc.h Update copyright years 2014-03-05 22:16:15 +10:30
arm.h Update copyright years 2014-03-05 22:16:15 +10:30
avr.h Add support for the AVR Tiny series of microcontrollers. 2014-07-01 10:20:17 +01:00
bfin.h Update copyright years 2014-03-05 22:16:15 +10:30
cgen.h Update copyright years 2014-03-05 22:16:15 +10:30
ChangeLog Refactoring/cleanup of nios2 opcodes and assembler code. 2014-10-23 09:54:15 -07:00
ChangeLog-9103 Add copyright notices 2012-12-10 12:48:03 +00:00
convex.h Update copyright years 2014-03-05 22:16:15 +10:30
cr16.h Update copyright years 2014-03-05 22:16:15 +10:30
cris.h Update copyright years 2014-03-05 22:16:15 +10:30
crx.h Update copyright years 2014-03-05 22:16:15 +10:30
d10v.h Update copyright years 2014-03-05 22:16:15 +10:30
d30v.h Update copyright years 2014-03-05 22:16:15 +10:30
dlx.h Update copyright years 2014-03-05 22:16:15 +10:30
h8300.h Update copyright years 2014-03-05 22:16:15 +10:30
hppa.h Update copyright years 2014-03-05 22:16:15 +10:30
i370.h Update copyright years 2014-03-05 22:16:15 +10:30
i386.h Update copyright years 2014-03-05 22:16:15 +10:30
i860.h Update copyright years 2014-03-05 22:16:15 +10:30
i960.h Update copyright years 2014-03-05 22:16:15 +10:30
ia64.h Update copyright years 2014-03-05 22:16:15 +10:30
m68hc11.h Update copyright years 2014-03-05 22:16:15 +10:30
m68k.h Update copyright years 2014-03-05 22:16:15 +10:30
m88k.h Update copyright years 2014-03-05 22:16:15 +10:30
metag.h Update copyright years 2014-03-05 22:16:15 +10:30
mips.h Add support for MIPS R6. 2014-09-15 12:15:55 +01:00
mmix.h Update copyright years 2014-03-05 22:16:15 +10:30
mn10200.h Update copyright years 2014-03-05 22:16:15 +10:30
mn10300.h Update copyright years 2014-03-05 22:16:15 +10:30
moxie.h Update copyright years 2014-03-05 22:16:15 +10:30
msp430-decode.h Update copyright years 2014-03-05 22:16:15 +10:30
msp430.h Fix MSP430 assembler to support #hi(<symbol>). 2014-05-20 10:28:42 +01:00
nds32.h NDS32/opcodes: Add audio ISA extension and modify the disassemble implemnt. 2014-09-16 12:28:11 +08:00
nios2.h Refactoring/cleanup of nios2 opcodes and assembler code. 2014-10-23 09:54:15 -07:00
nios2r1.h Refactoring/cleanup of nios2 opcodes and assembler code. 2014-10-23 09:54:15 -07:00
np1.h Update copyright years 2014-03-05 22:16:15 +10:30
ns32k.h Update copyright years 2014-03-05 22:16:15 +10:30
pdp11.h Update copyright years 2014-03-05 22:16:15 +10:30
pj.h Update copyright years 2014-03-05 22:16:15 +10:30
pn.h Update copyright years 2014-03-05 22:16:15 +10:30
ppc.h Update copyright years 2014-03-05 22:16:15 +10:30
pyr.h Update copyright years 2014-03-05 22:16:15 +10:30
rl78.h Update copyright years 2014-03-05 22:16:15 +10:30
rx.h Update copyright years 2014-03-05 22:16:15 +10:30
s390.h Update copyright years 2014-03-05 22:16:15 +10:30
score-datadep.h Update copyright years 2014-03-05 22:16:15 +10:30
score-inst.h Update copyright years 2014-03-05 22:16:15 +10:30
sparc.h opcodes, elf: annotate instructions with HWCAP2_VIS3B. 2014-10-17 22:00:02 +02:00
spu-insns.h Update copyright years 2014-03-05 22:16:15 +10:30
spu.h Update copyright years 2014-03-05 22:16:15 +10:30
tahoe.h Update copyright years 2014-03-05 22:16:15 +10:30
tic4x.h Update copyright years 2014-03-05 22:16:15 +10:30
tic6x-control-registers.h Update copyright years 2014-03-05 22:16:15 +10:30
tic6x-insn-formats.h Update copyright years 2014-03-05 22:16:15 +10:30
tic6x-opcode-table.h Update copyright years 2014-03-05 22:16:15 +10:30
tic6x.h Update copyright years 2014-03-05 22:16:15 +10:30
tic30.h Update copyright years 2014-03-05 22:16:15 +10:30
tic54x.h Update copyright years 2014-03-05 22:16:15 +10:30
tic80.h Update copyright years 2014-03-05 22:16:15 +10:30
tilegx.h Update copyright years 2014-03-05 22:16:15 +10:30
tilepro.h Update copyright years 2014-03-05 22:16:15 +10:30
v850.h Update copyright years 2014-03-05 22:16:15 +10:30
vax.h Update copyright years 2014-03-05 22:16:15 +10:30
xgate.h Update copyright years 2014-03-05 22:16:15 +10:30