move common instrumentation constants (valid for all stubs) to cpu.h

This commit is contained in:
Stanislav Shwartsman 2011-09-25 17:38:54 +00:00
parent 62d0c8abf7
commit b66feecc86

View File

@ -269,6 +269,42 @@
#endif // defined(NEED_CPU_REG_SHORTCUTS)
// <TAG-INSTRUMENTATION_COMMON-BEGIN>
// possible types passed to BX_INSTR_TLB_CNTRL()
#define BX_INSTR_MOV_CR0 10
#define BX_INSTR_MOV_CR3 11
#define BX_INSTR_MOV_CR4 12
#define BX_INSTR_TASK_SWITCH 13
#define BX_INSTR_CONTEXT_SWITCH 14
#define BX_INSTR_INVLPG 15
#define BX_INSTR_INVEPT 16
#define BX_INSTR_INVVPID 17
#define BX_INSTR_INVPCID 18
// possible types passed to BX_INSTR_CACHE_CNTRL()
#define BX_INSTR_INVD 20
#define BX_INSTR_WBINVD 21
// possible types passed to BX_INSTR_FAR_BRANCH()
#define BX_INSTR_IS_CALL 10
#define BX_INSTR_IS_RET 11
#define BX_INSTR_IS_IRET 12
#define BX_INSTR_IS_JMP 13
#define BX_INSTR_IS_INT 14
#define BX_INSTR_IS_SYSCALL 15
#define BX_INSTR_IS_SYSRET 16
#define BX_INSTR_IS_SYSENTER 17
#define BX_INSTR_IS_SYSEXIT 18
// possible types passed to BX_INSTR_PREFETCH_HINT()
#define BX_INSTR_PREFETCH_NTA 0
#define BX_INSTR_PREFETCH_T0 1
#define BX_INSTR_PREFETCH_T1 2
#define BX_INSTR_PREFETCH_T2 3
// <TAG-INSTRUMENTATION_COMMON-END>
struct BxExceptionInfo {
unsigned exception_type;
unsigned exception_class;