86 DIAG_Assert(opIndex <= 2,
"Programming Error");
94 VMA x = (
VMA)di_vma + insn_vma;
105 ostream* os = (ostream*)di->stream;
106 *os << std::showbase << std::hex << x << std::dec;
118 m_di =
new disassemble_info;
120 m_di->arch = bfd_arch_ia64;
121 m_di->endian = BFD_ENDIAN_LITTLE;
153 switch(
m_di->insn_type) {
158 if (
m_di->target != 0) {
168 if (
m_di->target != 0 || opIndex != 0) {
176 if (
m_di->target != 0) {
215 if (
m_di->target != 0 || opIndex != 0) {
struct disassemble_info * m_di
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,...)
virtual ushort getInsnNumOps(MachInsn *mi)
int GNUbu_fprintf_stub(void *GCC_ATTR_UNUSED stream, const char *GCC_ATTR_UNUSED format,...)
DecodingCache * cacheLookup(MachInsn *cmi)
virtual void decode(std::ostream &os, MachInsn *mi, VMA vma, ushort opIndex)
unsigned short int ushort
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)
static VMA GNUvma2vma(bfd_vma di_vma, MachInsn *GCC_ATTR_UNUSED insn_addr, VMA insn_vma)
void GNUbu_print_addr_stub(bfd_vma GCC_ATTR_UNUSED di_vma, struct disassemble_info *GCC_ATTR_UNUSED di)
static MachInsn * ConvertMIToOpMI(MachInsn *mi, ushort opIndex)
unsigned char MachInsnByte
struct disassemble_info * m_di_dis