miasm
Reverse engineering framework
|
#include <Python.h>
#include "structmember.h"
#include <stdint.h>
#include <inttypes.h>
#include "../compat_py23.h"
#include "../queue.h"
#include "../vm_mngr.h"
#include "../bn.h"
#include "../vm_mngr_py.h"
#include "../JitCore.h"
#include "JitCore_ppc32.h"
#include "JitCore_ppc32_regs.h"
Macros | |
#define | JITCORE_PPC_REG_EXPAND(_name, _size) { .name = #_name, .offset = offsetof(struct vm_cpu, _name), .size = _size }, |
#define | JITCORE_PPC_REG_EXPAND(_name, _size) get_reg(_name); |
#define | JITCORE_PPC_REG_EXPAND(_name, _size) dump_gpreg(#_name, vmcpu->_name, ®_num); |
#define | JITCORE_PPC_REG_EXPAND(_name, _size) getset_reg_u32(_name); |
#define | JITCORE_PPC_REG_EXPAND(_name, _size) get_reg_off(_name); |
#define | JITCORE_PPC_REG_EXPAND(_name, _size) |
Functions | |
PyObject * | cpu_get_gpreg (JitCpu *self) |
PyObject * | cpu_set_gpreg (JitCpu *self, PyObject *args) |
PyObject * | cpu_init_regs (JitCpu *self) |
void | dump_gpregs (struct vm_cpu *vmcpu) |
PyObject * | cpu_dump_gpregs (JitCpu *self, PyObject *args) |
PyObject * | cpu_dump_gpregs_with_attrib (JitCpu *self, PyObject *args) |
PyObject * | cpu_set_exception (JitCpu *self, PyObject *args) |
PyObject * | cpu_get_exception (JitCpu *self, PyObject *args) |
void | MEM_WRITE_08 (JitCpu *jitcpu, uint64_t addr, uint8_t src) |
void | MEM_WRITE_16 (JitCpu *jitcpu, uint64_t addr, uint16_t src) |
void | MEM_WRITE_32 (JitCpu *jitcpu, uint64_t addr, uint32_t src) |
void | MEM_WRITE_64 (JitCpu *jitcpu, uint64_t addr, uint64_t src) |
PyObject * | get_gpreg_offset_all (void) |
MOD_INIT (JitCore_ppc32) | |
Variables | |
reg_dict | gpreg_dict [] |
#define JITCORE_PPC_REG_EXPAND | ( | _name, | |
_size | |||
) | { .name = #_name, .offset = offsetof(struct vm_cpu, _name), .size = _size }, |
#define JITCORE_PPC_REG_EXPAND | ( | _name, | |
_size | |||
) | get_reg(_name); |
#define JITCORE_PPC_REG_EXPAND | ( | _name, | |
_size | |||
) | dump_gpreg(#_name, vmcpu->_name, ®_num); |
#define JITCORE_PPC_REG_EXPAND | ( | _name, | |
_size | |||
) | getset_reg_u32(_name); |
#define JITCORE_PPC_REG_EXPAND | ( | _name, | |
_size | |||
) | get_reg_off(_name); |
#define JITCORE_PPC_REG_EXPAND | ( | _name, | |
_size | |||
) |
PyObject* cpu_dump_gpregs | ( | JitCpu * | self, |
PyObject * | args | ||
) |
PyObject* cpu_dump_gpregs_with_attrib | ( | JitCpu * | self, |
PyObject * | args | ||
) |
PyObject* cpu_get_exception | ( | JitCpu * | self, |
PyObject * | args | ||
) |
PyObject* cpu_get_gpreg | ( | JitCpu * | self | ) |
PyObject* cpu_init_regs | ( | JitCpu * | self | ) |
PyObject* cpu_set_exception | ( | JitCpu * | self, |
PyObject * | args | ||
) |
PyObject* cpu_set_gpreg | ( | JitCpu * | self, |
PyObject * | args | ||
) |
void dump_gpregs | ( | struct vm_cpu * | vmcpu | ) |
PyObject* get_gpreg_offset_all | ( | void | ) |
void MEM_WRITE_08 | ( | JitCpu * | jitcpu, |
uint64_t | addr, | ||
uint8_t | src | ||
) |
void MEM_WRITE_16 | ( | JitCpu * | jitcpu, |
uint64_t | addr, | ||
uint16_t | src | ||
) |
void MEM_WRITE_32 | ( | JitCpu * | jitcpu, |
uint64_t | addr, | ||
uint32_t | src | ||
) |
void MEM_WRITE_64 | ( | JitCpu * | jitcpu, |
uint64_t | addr, | ||
uint64_t | src | ||
) |
MOD_INIT | ( | JitCore_ppc32 | ) |
reg_dict gpreg_dict[] |