Int emit_AMD64Instr ( /*MB_MOD*/Bool* is_profInc,
UChar* buf, Int nbuf, const AMD64Instr* i,
- Bool mode64, VexEndness endness_host,
+ Bool mode64, const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
UChar* buf, Int nbuf,
const AMD64Instr* i,
Bool mode64,
- VexEndness endness_host,
+ const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
Int emit_ARM64Instr ( /*MB_MOD*/Bool* is_profInc,
UChar* buf, Int nbuf, const ARM64Instr* i,
- Bool mode64, VexEndness endness_host,
+ Bool mode64, const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
extern Int emit_ARM64Instr ( /*MB_MOD*/Bool* is_profInc,
UChar* buf, Int nbuf, const ARM64Instr* i,
Bool mode64,
- VexEndness endness_host,
+ const VexArchInfo *archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
Int emit_ARMInstr ( /*MB_MOD*/Bool* is_profInc,
UChar* buf, Int nbuf, const ARMInstr* i,
- Bool mode64, VexEndness endness_host,
+ Bool mode64, const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
extern Int emit_ARMInstr ( /*MB_MOD*/Bool* is_profInc,
UChar* buf, Int nbuf, const ARMInstr* i,
Bool mode64,
- VexEndness endness_host,
+ const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
Int emit_MIPSInstr ( /*MB_MOD*/Bool* is_profInc,
UChar* buf, Int nbuf, const MIPSInstr* i,
Bool mode64,
- VexEndness endness_host,
+ const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
extern Int emit_MIPSInstr (/*MB_MOD*/Bool* is_profInc,
UChar* buf, Int nbuf, const MIPSInstr* i,
Bool mode64,
- VexEndness endness_host,
+ const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
UChar* buf, Int nbuf,
const NANOMIPSInstr* i,
Bool mode64,
- VexEndness endness_host,
+ const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
UChar* buf, Int nbuf,
const NANOMIPSInstr* i,
Bool mode64,
- VexEndness endness_host,
+ const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
*/
Int emit_PPCInstr ( /*MB_MOD*/Bool* is_profInc,
UChar* buf, Int nbuf, const PPCInstr* i,
- Bool mode64, VexEndness endness_host,
+ Bool mode64, const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
vex_printf("asm ");ppPPCInstr(i, mode64); vex_printf("\n");
}
+ VexEndness endness_host = archinfo_host->endness;
switch (i->tag) {
case Pin_LI:
extern Int emit_PPCInstr ( /*MB_MOD*/Bool* is_profInc,
UChar* buf, Int nbuf, const PPCInstr* i,
Bool mode64,
- VexEndness endness_host,
+ const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
Int nbuf,
const RISCV64Instr* i,
Bool mode64,
- VexEndness endness_host,
+ const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
Int nbuf,
const RISCV64Instr* i,
Bool mode64,
- VexEndness endness_host,
+ const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
Int
emit_S390Instr(Bool *is_profinc, UChar *buf, Int nbuf, const s390_insn *insn,
- Bool mode64, VexEndness endness_host,
+ Bool mode64, const VexArchInfo *archinfo,
const void *disp_cp_chain_me_to_slowEP,
const void *disp_cp_chain_me_to_fastEP,
const void *disp_cp_xindir,
void getRegUsage_S390Instr( HRegUsage *, const s390_insn *, Bool );
void mapRegs_S390Instr ( HRegRemap *, s390_insn *, Bool );
Int emit_S390Instr ( Bool *, UChar *, Int, const s390_insn *, Bool,
- VexEndness, const void *, const void *,
+ const VexArchInfo *, const void *, const void *,
const void *, const void *);
const RRegUniverse *getRRegUniverse_S390( void );
void genSpill_S390 ( HInstr **, HInstr **, HReg , Int , Bool );
Int emit_X86Instr ( /*MB_MOD*/Bool* is_profInc,
UChar* buf, Int nbuf, const X86Instr* i,
- Bool mode64, VexEndness endness_host,
+ Bool mode64, const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
extern Int emit_X86Instr ( /*MB_MOD*/Bool* is_profInc,
UChar* buf, Int nbuf, const X86Instr* i,
Bool mode64,
- VexEndness endness_host,
+ const VexArchInfo* archinfo_host,
const void* disp_cp_chain_me_to_slowEP,
const void* disp_cp_chain_me_to_fastEP,
const void* disp_cp_xindir,
const VexAbiInfo*, Int, Int, Bool, Bool,
Addr );
Int (*emit) ( /*MB_MOD*/Bool*,
- UChar*, Int, const HInstr*, Bool, VexEndness,
- const void*, const void*, const void*,
- const void* );
+ UChar*, Int, const HInstr*, Bool,
+ const VexArchInfo*, const void*,
+ const void*, const void*, const void* );
Bool (*preciseMemExnsFn) ( Int, Int, VexRegisterUpdates );
const RRegUniverse* rRegUniv = NULL;
}
j = emit( &hi_isProfInc,
insn_bytes, sizeof insn_bytes, hi,
- mode64, vta->archinfo_host.endness,
+ mode64, &vta->archinfo_host,
vta->disp_cp_chain_me_to_slowEP,
vta->disp_cp_chain_me_to_fastEP,
vta->disp_cp_xindir,