Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <rz_types.h>
#include <rz_lib.h>
#include <rz_util.h>
#include <rz_asm.h>
#include "disas-asm.h"
Go to the source code of this file.
Enumerations | |
enum | { TRICORE_GENERIC = 0x00000000 , TRICORE_RIDER_A = 0x00000001 , TRICORE_RIDER_B = 0x00000002 , TRICORE_RIDER_D = TRICORE_RIDER_B , TRICORE_V2 = 0x00000004 , TRICORE_PCP = 0x00000010 , TRICORE_PCP2 = 0x00000020 } |
Functions | |
static int | cpu_to_mach (char *cpu_type) |
static int | tricore_buffer_read_memory (bfd_vma memaddr, bfd_byte *myaddr, ut32 length, struct disassemble_info *info) |
static int | symbol_at_address (bfd_vma addr, struct disassemble_info *info) |
static void | memory_error_func (int status, bfd_vma memaddr, struct disassemble_info *info) |
static int | disassemble (RzAsm *a, RzAsmOp *op, const ut8 *buf, int len) |
Variables | |
static unsigned long | Offset = 0 |
static RzStrBuf * | buf_global = NULL |
static ut8 | bytes [128] |
RzAsmPlugin | rz_asm_plugin_tricore |
RZ_API RzLibStruct | rizin_plugin |
anonymous enum |
Enumerator | |
---|---|
TRICORE_GENERIC | |
TRICORE_RIDER_A | |
TRICORE_RIDER_B | |
TRICORE_RIDER_D | |
TRICORE_V2 | |
TRICORE_PCP | |
TRICORE_PCP2 |
Definition at line 18 of file asm_tricore.c.
|
static |
Definition at line 28 of file asm_tricore.c.
References cpu_type, TRICORE_GENERIC, TRICORE_PCP, TRICORE_PCP2, TRICORE_RIDER_A, TRICORE_RIDER_B, and TRICORE_V2.
Referenced by disassemble().
Definition at line 71 of file asm_tricore.c.
References a, BFD_ENDIAN_LITTLE, buf_global, disassemble_info::buffer, bytes, cpu_to_mach(), disassemble_info::disassembler_options, disassemble_info::endian, disassemble_info::fprintf_func, len, disassemble_info::mach, memcpy(), memory_error_func(), disassemble_info::memory_error_func, memset(), Offset, disassemble_info::print_address_func, print_insn_tricore(), disassemble_info::read_memory_func, rz_asm_op_set_asm(), RZ_MIN, disassemble_info::stream, symbol_at_address(), disassemble_info::symbol_at_address_func, and tricore_buffer_read_memory().
|
static |
|
static |
|
static |
Definition at line 52 of file asm_tricore.c.
References bytes, delta, length, memcpy(), and Offset.
Referenced by disassemble().
Definition at line 16 of file asm_tricore.c.
Referenced by disassemble().
|
static |
Definition at line 17 of file asm_tricore.c.
Referenced by disassemble(), and tricore_buffer_read_memory().
Definition at line 15 of file asm_tricore.c.
Referenced by disassemble(), and tricore_buffer_read_memory().
RZ_API RzLibStruct rizin_plugin |
Definition at line 110 of file asm_tricore.c.
RzAsmPlugin rz_asm_plugin_tricore |
Definition at line 99 of file asm_tricore.c.