HPCToolkit
specific-inline-asm-gctxt.h File Reference
Include dependency graph for specific-inline-asm-gctxt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INLINE_ASM_GCTXT(uc)
 

Macro Definition Documentation

◆ INLINE_ASM_GCTXT

#define INLINE_ASM_GCTXT (   uc)
Value:
/* load PC into RAX; save RAX into uc structure */ \
asm volatile ("leaq 0(%%rip), %%rax\n\t" \
"movq %%rax, %0" \
: "=m" (UC_REG_IP(uc)) /* output */ \
: /* no inputs */ \
: "%rax" /* clobbered */ ); \
/* save BP into uc structure */ \
asm volatile ("movq %%rbp, %0" \
: "=m" (UC_REG_BP(uc)) /* output */ ); \
/* save SP into uc structure */ \
asm volatile ("movq %%rsp, %0" \
: "=m" (UC_REG_SP(uc)) /* output */ )
#define UC_REG_IP(uc)
#define UC_REG_BP(uc)
unsigned char uc
Definition: amd-xop.c:3
#define UC_REG_SP(uc)

Definition at line 68 of file specific-inline-asm-gctxt.h.