94 ostream* os = (ostream*)di->stream;
95 *os << std::showbase << std::hex << x << std::dec;
107 m_di =
new disassemble_info;
109 m_di->arch = bfd_arch_sparc;
110 m_di->mach = bfd_mach_sparc_v9;
111 m_di->endian = BFD_ENDIAN_BIG;
152 bool isPCRel = (
m_di->target2 == 0);
154 switch (
m_di->insn_type) {
159 if (
m_di->target != 0 && isPCRel) {
167 if (
m_di->target != 0 && isPCRel) {
175 if (
m_di->target != 0 && isPCRel) {
static void GNUbu_print_addr(bfd_vma di_vma, struct disassemble_info *di)
virtual VMA getInsnTargetVMA(MachInsn *mi, VMA pc, ushort opIndex, ushort sz=0)
virtual InsnDesc getInsnDesc(MachInsn *mi, ushort opIndex, ushort sz=0)
int GNUbu_fprintf(void *stream, const char *format,...)
int GNUbu_fprintf_stub(void *GCC_ATTR_UNUSED stream, const char *GCC_ATTR_UNUSED format,...)
DecodingCache * cacheLookup(MachInsn *cmi)
unsigned short int ushort
struct disassemble_info * m_di
struct disassemble_info * m_di_dis
int GNUbu_read_memory(bfd_vma vma, bfd_byte *myaddr, unsigned int len, struct disassemble_info *GCC_ATTR_UNUSED di)
void cacheSet(MachInsn *cmi, ushort size)
virtual ushort getInsnNumDelaySlots(MachInsn *mi, ushort opIndex, ushort sz=0)
void GNUbu_print_addr_stub(bfd_vma GCC_ATTR_UNUSED di_vma, struct disassemble_info *GCC_ATTR_UNUSED di)
static VMA GNUvma2vma(bfd_vma di_vma, MachInsn *insn_addr, VMA insn_vma)
virtual void decode(std::ostream &os, MachInsn *mi, VMA vma, ushort opIndex)