Vol. 3D 41-83
SGX INSTRUCTION REFERENCES
IF the “monitor trap flag” VM-execution control is set
THEN pend a MTF VM exit at the end of EEXIT;
FI;
CR_ENCLAVE_MODE 0;
CR_TCS_PA.STATE INACTIVE;
(* Assure consistent translations *)
Flush_linear_context;
Flags Affected
RFLAGS.TF is restored from the value previously saved in EENTER or ERESUME.
Protected Mode Exceptions
#GP(0)
If executed outside an enclave.
If RBX is outside the CS segment.
#PF(error code)
If a page fault occurs in accessing memory.
64-Bit Mode Exceptions
#GP(0)
If executed outside an enclave.
If RBX is not canonical.
#PF(error code)
If a page fault occurs in accessing memory operands.