모두의 코드
XABORT (Intel x86/64 assembly instruction)

작성일 : 2020-09-01 이 글은 699 번 읽혔습니다.

XABORT

Transactional Abort

참고 사항

아래 표를 해석하는 방법은 x86-64 명령어 레퍼런스 읽는 법 글을 참조하시기 바랍니다.

Opcode/Instruction

Op/
En

64/32bit
Mode
Support

CPUID
Feature
Flag

Description

C6 F8 ib
XABORT imm8

A

V/V

RTM

Causes an RTM abort if in RTM execution

Instruction Operand Encoding

Op/En

Operand 1

Operand2

Operand3

Operand4

A

imm8

NA

NA

NA

Description

XABORT forces an RTM abort. Following an RTM abort, the logical processor resumes execution at the fallback address computed through the outermost XBEGIN instruction. The EAX register is updated to reflect an XABORT instruction caused the abort, and the imm8 argument will be provided in bits 31:24 of EAX.

Operation

XABORT

IF RTM_ACTIVE = 0
    THEN 
          Treat as NOP;
    ELSE
          GOTO RTM_ABORT_PROCESSING;
FI;
(* For any RTM abort condition encountered during RTM execution *)
RTM_ABORT_PROCESSING:
    Restore architectural register state;
    Discard memory updates performed in transaction;
    Update EAX with status and XABORT argument;
    RTM_NEST_COUNT <- 0;
    RTM_ACTIVE <- 0;
    IF 64-bit Mode
          THEN
                RIP <- fallbackRIP;
          ELSE
                EIP <- fallbackEIP;
    FI;
END

Flags Affected

None

Intel C/C++ Compiler Intrinsic Equivalent

XABORT : void _xabort(unsigned int);

SIMD Floating-Point Exceptions

None

Other Exceptions

#UD CPUID.(EAX=7, ECX=0):EBX.RTM[bit 11] = 0.

If LOCK prefix is used.

첫 댓글을 달아주세요!
프로필 사진 없음
강좌에 관련 없이 궁금한 내용은 여기를 사용해주세요

    댓글을 불러오는 중입니다..