23 #include "arch/i386.h" 26 #include "arch/amd64.h" 73 #if defined __i386__ || !defined IN_PROCESS_AGENT 89 *tdesc = i386_create_target_description (xcr0,
true);
93 #ifndef IN_PROCESS_AGENT 94 static const char *expedite_regs_i386[] = {
"ebp",
"esp",
"eip", NULL };
95 (*tdesc)->expedite_regs = expedite_regs_i386;
109 amd64_linux_read_description (uint64_t xcr0,
bool is_x32)
119 tdesc = &x32_tdescs[idx];
121 tdesc = &amd64_tdescs[idx];
125 *tdesc = amd64_create_target_description (xcr0, is_x32,
true);
129 #ifndef IN_PROCESS_AGENT 130 static const char *expedite_regs_amd64[] = {
"rbp",
"rsp",
"rip", NULL };
131 (*tdesc)->expedite_regs = expedite_regs_amd64;
139 #ifndef IN_PROCESS_AGENT 154 #if defined __x86_64__ 156 amd64_get_ipa_tdesc_idx (
const struct target_desc *tdesc)
160 if (tdesc == amd64_tdescs[i])
165 if (tdesc == x32_tdescs[i])
const struct target_desc * i386_linux_read_description(uint64_t xcr0)
static struct target_desc * i386_tdescs[X86_TDESC_LAST]
static enum x86_linux_tdesc xcr0_to_tdesc_idx(uint64_t xcr0, bool is_x32)
void init_target_desc(struct target_desc *tdesc)
#define X86_XSTATE_AVX512
int i386_get_ipa_tdesc_idx(const struct target_desc *tdesc)
#define X86_XSTATE_AVX_MPX_MASK