Rizin
unix-like reverse engineering framework and cli tools
|
#include "mybfd.h"
Go to the source code of this file.
Classes | |
struct | nios2_opcode |
struct | nios2_reg |
Enumerations | |
enum | overflow_type { call_target_overflow = 0 , branch_target_overflow , address_offset_overflow , signed_immed16_overflow , unsigned_immed16_overflow , unsigned_immed5_overflow , custom_opcode_overflow , no_overflow } |
Functions | |
const struct nios2_opcode * | nios2_find_opcode_hash (unsigned long) |
Variables | |
const struct nios2_opcode | nios2_builtin_opcodes [] |
const int | bfd_nios2_num_builtin_opcodes |
struct nios2_opcode * | nios2_opcodes |
int | bfd_nios2_num_opcodes |
const struct nios2_reg | nios2_builtin_regs [] |
struct nios2_reg * | nios2_regs |
const int | nios2_num_builtin_regs |
int | nios2_num_regs |
#define GET_IW_CONTROL_REGNUM | ( | Iw | ) | (((Iw) >> IW_CONTROL_REGNUM_LSB) & IW_CONTROL_REGNUM_MASK) |
#define GET_IW_IMM16 | ( | Iw | ) | (((Iw) >> IW_IMM16_LSB) & IW_IMM16_MASK) |
#define GET_IW_IMM26 | ( | Iw | ) | (((Iw) >> IW_IMM26_LSB) & IW_IMM26_MASK) |
#define GET_IW_OP | ( | Iw | ) | (((Iw) >> IW_OP_LSB) & IW_OP_MASK) |
#define GET_IW_OPX | ( | Iw | ) | (((Iw) >> IW_OPX_LSB) & IW_OPX_MASK) |
#define NUMOPCODES bfd_nios2_num_opcodes |
#define NUMREGISTERS nios2_num_regs; |
#define OP_MASK_BREAK ((OP_MASK_RRS | OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX | OP_MASK_OP) & 0xfffff03f) |
#define OP_MASK_CALLR ((OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX | OP_MASK_OP)) |
#define OP_MASK_FLUSHI ((OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX | OP_MASK_OP)) |
#define OP_MASK_IMM16 (IW_IMM16_MASK << IW_IMM16_LSB) |
#define OP_MASK_IMM26 (IW_IMM26_MASK << IW_IMM26_LSB) |
#define OP_MASK_IMM5 (IW_SHIFT_IMM5_MASK << IW_SHIFT_IMM5_LSB) |
#define OP_MASK_INITI ((OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX | OP_MASK_OP)) |
#define OP_MASK_IOP (IW_OP_MASK << IW_OP_LSB) |
#define OP_MASK_JMP ((OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX | OP_MASK_OP)) |
#define OP_MASK_JOP (IW_OP_MASK << IW_OP_LSB) |
#define OP_MASK_NEXTPC ((OP_MASK_RRS | OP_MASK_RRT | OP_MASK_ROPX | OP_MASK_OP)) |
#define OP_MASK_OP (IW_OP_MASK << IW_OP_LSB) |
#define OP_MASK_RDCTL ((OP_MASK_RRS | OP_MASK_RRT | OP_MASK_ROPX | OP_MASK_OP)) /*& 0xfffff83f */ |
#define OP_MASK_ROLI ((OP_MASK_RRT | OP_MASK_ROPX | OP_MASK_OP)) |
#define OP_MASK_ROP (IW_OP_MASK << IW_OP_LSB) |
#define OP_MASK_ROPX (IW_OPX_MASK << IW_OPX_LSB) |
#define OP_MASK_SLLI ((OP_MASK_RRT | OP_MASK_ROPX | OP_MASK_OP)) |
#define OP_MASK_SRAI ((OP_MASK_RRT | OP_MASK_ROPX | OP_MASK_OP)) |
#define OP_MASK_SRLI ((OP_MASK_RRT | OP_MASK_ROPX | OP_MASK_OP)) |
#define OP_MASK_SYNC ((OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX | OP_MASK_OP)) |
#define OP_MASK_TRAP ((OP_MASK_RRS | OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX | OP_MASK_OP) & 0xfffff83f) |
#define OP_MASK_WRCTL ((OP_MASK_RRT | OP_MASK_RRD | OP_MASK_ROPX | OP_MASK_OP)) /*& 0xfffff83f */ |
#define OP_MATCH_CMPGEU OPX_MATCH(OPX_CMPGEU) |
#define OP_MATCH_CMPGEUI OP_CMPGEUI |
#define OP_MATCH_CMPLTU OPX_MATCH(OPX_CMPLTU) |
#define OP_MATCH_CMPLTUI OP_CMPLTUI |
#define OP_MATCH_FLUSHDA OP_FLUSHDA |
#define OP_MATCH_FLUSHI OPX_MATCH(OPX_FLUSHI) |
#define OP_MATCH_FLUSHP OPX_MATCH(OPX_FLUSHP) |
#define OP_MATCH_MULXSS OPX_MATCH(OPX_MULXSS) |
#define OP_MATCH_MULXSU OPX_MATCH(OPX_MULXSU) |
#define OP_MATCH_MULXUU OPX_MATCH(OPX_MULXUU) |
#define OP_MATCH_NEXTPC OPX_MATCH(OPX_NEXTPC) |
#define OP_SH_IMM16 IW_IMM16_LSB |
#define OP_SH_IMM26 IW_IMM26_LSB |
#define OP_SH_IMM5 IW_SHIFT_IMM5_LSB |
#define OP_SH_ROPX IW_OPX_LSB |
enum overflow_type |
const struct nios2_opcode* nios2_find_opcode_hash | ( | unsigned long | opcode | ) |
Definition at line 126 of file nios2-dis.c.
References nios2_hash, nios2_hash_init, nios2_init_opcode_hash(), nios2_ps_hash, NULL, OP_MASK_OP, and OP_SH_OP.
Referenced by nios2_disassemble().
Definition at line 408 of file nios2-opc.c.
|
extern |
Definition at line 414 of file nios2-opc.c.
|
extern |
Definition at line 170 of file nios2-opc.c.
Definition at line 1 of file nios2-opc.c.
Definition at line 165 of file nios2-opc.c.
|
extern |
Definition at line 170 of file nios2-opc.c.
Referenced by nios2_control_regs(), and nios2_coprocessor_regs().
|
extern |
Definition at line 412 of file nios2-opc.c.
Referenced by nios2_init_opcode_hash().
|
extern |
Definition at line 169 of file nios2-opc.c.
Referenced by nios2_control_regs(), nios2_coprocessor_regs(), and nios2_print_insn_arg().