background image

41-80 Vol. 3D

SGX INSTRUCTION REFERENCES

If executed in enclave mode.
If part or all of the FS or GS segment specified by TCS is outside the DS segment or not prop-

erly aligned.

If the target address is not canonical.
If CR4.OSFXSR = 0.
If CR4.OSXSAVE = 0 and SECS.ATTRIBUTES.XFRM ≠ 3.
If CR4.OSXSAVE = 1and SECS.ATTRIBUTES.XFRM is not a subset of XCR0.

#PF(error code)

If a page fault occurs in accessing memory operands.
If DS:RBX does not point to a valid TCS.
If one or more pages of the current SSA frame are not readable/writable, or do not resolve to 

a valid PT_REG EPC page.