Rizin
unix-like reverse engineering framework and cli tools
|
#include "sysdep.h"
#include "disas-asm.h"
#include "opcode/nios2.h"
#include "libiberty.h"
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include "elf-bfd.h"
Go to the source code of this file.
Classes | |
struct | _nios2_opcode_hash |
Macros | |
#define | SYMTAB_AVAILABLE 1 |
#define | INSNLEN 4 |
#define | NUMREGNAMES 32 |
Typedefs | |
typedef struct _nios2_opcode_hash | nios2_opcode_hash |
Functions | |
static void | nios2_init_opcode_hash (void) |
const struct nios2_opcode * | nios2_find_opcode_hash (unsigned long opcode) |
static struct nios2_reg * | nios2_coprocessor_regs (void) |
static struct nios2_reg * | nios2_control_regs (void) |
static int | nios2_print_insn_arg (const char *argptr, unsigned long opcode, bfd_vma address, disassemble_info *info) |
static int | nios2_disassemble (bfd_vma address, unsigned long opcode, disassemble_info *info) |
static int | print_insn_nios2 (bfd_vma address, disassemble_info *info, enum bfd_endian endianness) |
int | print_insn_big_nios2 (bfd_vma address, disassemble_info *info) |
int | print_insn_little_nios2 (bfd_vma address, disassemble_info *info) |
Variables | |
static bfd_boolean | nios2_hash_init = 0 |
static nios2_opcode_hash * | nios2_hash [(OP_MASK_OP)+1] |
static nios2_opcode_hash * | nios2_ps_hash [(OP_MASK_OP)+1] |
#define INSNLEN 4 |
Definition at line 40 of file nios2-dis.c.
#define NUMREGNAMES 32 |
Definition at line 156 of file nios2-dis.c.
#define SYMTAB_AVAILABLE 1 |
Definition at line 34 of file nios2-dis.c.
typedef struct _nios2_opcode_hash nios2_opcode_hash |
|
static |
Definition at line 180 of file nios2-dis.c.
References assert(), i, nios2_num_regs, nios2_regs, NULL, and NUMREGNAMES.
Referenced by nios2_print_insn_arg().
|
static |
Definition at line 160 of file nios2-dis.c.
References assert(), i, nios2_num_regs, nios2_regs, NULL, and NUMREGNAMES.
Referenced by nios2_print_insn_arg().
|
static |
Definition at line 321 of file nios2-dis.c.
References dis_nonbranch, dis_noninsn, dst, FALSE, GET_INSN_FIELD, info(), INSNLEN, nios2_find_opcode_hash(), NIOS2_INSN_MACRO_MOV, nios2_print_insn_arg(), NULL, op, src, and TRUE.
Referenced by print_insn_nios2().
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().
|
static |
Definition at line 57 of file nios2-dis.c.
References i, malloc(), nios2_opcode::name, _nios2_opcode_hash::next, nios2_hash, nios2_hash_init, NIOS2_INSN_MACRO, NIOS2_INSN_MACRO_MOV, NIOS2_INSN_MACRO_MOVI, nios2_opcodes, nios2_ps_hash, NULL, NUMOPCODES, op, OP_MASK_OP, OP_SH_OP, _nios2_opcode_hash::opcode, and printf().
Referenced by nios2_find_opcode_hash().
|
static |
Definition at line 202 of file nios2-dis.c.
References GET_INSN_FIELD, i, IMM5, info(), int, nios2_reg::name, nios2_control_regs(), nios2_coprocessor_regs(), nios2_regs, NUMREGNAMES, OP, and OP_MATCH_CUSTOM.
Referenced by nios2_disassemble().
int print_insn_big_nios2 | ( | bfd_vma | address, |
disassemble_info * | info | ||
) |
Definition at line 422 of file nios2-dis.c.
References BFD_ENDIAN_BIG, info(), and print_insn_nios2().
Referenced by disassemble().
int print_insn_little_nios2 | ( | bfd_vma | address, |
disassemble_info * | info | ||
) |
Definition at line 428 of file nios2-dis.c.
References BFD_ENDIAN_LITTLE, info(), and print_insn_nios2().
Referenced by disassemble().
|
static |
Definition at line 394 of file nios2-dis.c.
References BFD_ENDIAN_BIG, bfd_getb32(), bfd_getl32(), info(), INSNLEN, long, nios2_disassemble(), and status.
Referenced by print_insn_big_nios2(), and print_insn_little_nios2().
|
static |
Definition at line 50 of file nios2-dis.c.
Referenced by nios2_find_opcode_hash(), and nios2_init_opcode_hash().
|
static |
Definition at line 49 of file nios2-dis.c.
Referenced by nios2_find_opcode_hash(), and nios2_init_opcode_hash().
|
static |
Definition at line 53 of file nios2-dis.c.
Referenced by nios2_find_opcode_hash(), and nios2_init_opcode_hash().