diff --git a/bochs/cpu/cpu.h b/bochs/cpu/cpu.h index e2e90d85e..8a76e8c13 100644 --- a/bochs/cpu/cpu.h +++ b/bochs/cpu/cpu.h @@ -269,6 +269,42 @@ #endif // defined(NEED_CPU_REG_SHORTCUTS) +// + +// 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 + +// + struct BxExceptionInfo { unsigned exception_type; unsigned exception_class;