GDBserver
Macros
x86-xstate.h File Reference

Go to the source code of this file.

Macros

#define X86_XSTATE_X87   (1ULL << 0)
 
#define X86_XSTATE_SSE   (1ULL << 1)
 
#define X86_XSTATE_AVX   (1ULL << 2)
 
#define X86_XSTATE_BNDREGS   (1ULL << 3)
 
#define X86_XSTATE_BNDCFG   (1ULL << 4)
 
#define X86_XSTATE_MPX   (X86_XSTATE_BNDREGS | X86_XSTATE_BNDCFG)
 
#define X86_XSTATE_K   (1ULL << 5)
 
#define X86_XSTATE_ZMM_H   (1ULL << 6)
 
#define X86_XSTATE_ZMM   (1ULL << 7)
 
#define X86_XSTATE_AVX512
 
#define X86_XSTATE_PKRU   (1ULL << 9)
 
#define X86_XSTATE_X87_MASK   X86_XSTATE_X87
 
#define X86_XSTATE_SSE_MASK   (X86_XSTATE_X87 | X86_XSTATE_SSE)
 
#define X86_XSTATE_AVX_MASK   (X86_XSTATE_SSE_MASK | X86_XSTATE_AVX)
 
#define X86_XSTATE_MPX_MASK   (X86_XSTATE_SSE_MASK | X86_XSTATE_MPX)
 
#define X86_XSTATE_AVX_MPX_MASK   (X86_XSTATE_AVX_MASK | X86_XSTATE_MPX)
 
#define X86_XSTATE_AVX_AVX512_MASK   (X86_XSTATE_AVX_MASK | X86_XSTATE_AVX512)
 
#define X86_XSTATE_AVX_MPX_AVX512_PKU_MASK
 
#define X86_XSTATE_ALL_MASK   (X86_XSTATE_AVX_MPX_AVX512_PKU_MASK)
 
#define X86_XSTATE_SSE_SIZE   576
 
#define X86_XSTATE_AVX_SIZE   832
 
#define X86_XSTATE_BNDREGS_SIZE   1024
 
#define X86_XSTATE_BNDCFG_SIZE   1088
 
#define X86_XSTATE_AVX512_SIZE   2688
 
#define X86_XSTATE_PKRU_SIZE   2696
 
#define X86_XSTATE_MAX_SIZE   2696
 
#define HAS_MPX(XCR0)   (((XCR0) & X86_XSTATE_MPX) != 0)
 
#define HAS_AVX(XCR0)   (((XCR0) & X86_XSTATE_AVX) != 0)
 
#define HAS_AVX512(XCR0)   (((XCR0) & X86_XSTATE_AVX512) != 0)
 
#define HAS_PKRU(XCR0)   (((XCR0) & X86_XSTATE_PKRU) != 0)
 
#define X86_XSTATE_SIZE(XCR0)
 

Macro Definition Documentation

◆ HAS_AVX

#define HAS_AVX (   XCR0)    (((XCR0) & X86_XSTATE_AVX) != 0)

Definition at line 64 of file x86-xstate.h.

◆ HAS_AVX512

#define HAS_AVX512 (   XCR0)    (((XCR0) & X86_XSTATE_AVX512) != 0)

Definition at line 65 of file x86-xstate.h.

◆ HAS_MPX

#define HAS_MPX (   XCR0)    (((XCR0) & X86_XSTATE_MPX) != 0)

Definition at line 63 of file x86-xstate.h.

◆ HAS_PKRU

#define HAS_PKRU (   XCR0)    (((XCR0) & X86_XSTATE_PKRU) != 0)

Definition at line 66 of file x86-xstate.h.

◆ X86_XSTATE_ALL_MASK

#define X86_XSTATE_ALL_MASK   (X86_XSTATE_AVX_MPX_AVX512_PKU_MASK)

Definition at line 50 of file x86-xstate.h.

Referenced by x86_linux_read_description().

◆ X86_XSTATE_AVX

#define X86_XSTATE_AVX   (1ULL << 2)

Definition at line 26 of file x86-xstate.h.

Referenced by i387_cache_to_xsave(), i387_xsave_to_cache(), and xcr0_to_tdesc_idx().

◆ X86_XSTATE_AVX512

#define X86_XSTATE_AVX512
Value:
#define X86_XSTATE_ZMM_H
Definition: x86-xstate.h:33
#define X86_XSTATE_ZMM
Definition: x86-xstate.h:34
#define X86_XSTATE_K
Definition: x86-xstate.h:32

Definition at line 35 of file x86-xstate.h.

Referenced by xcr0_to_tdesc_idx().

◆ X86_XSTATE_AVX512_SIZE

#define X86_XSTATE_AVX512_SIZE   2688

Definition at line 57 of file x86-xstate.h.

◆ X86_XSTATE_AVX_AVX512_MASK

#define X86_XSTATE_AVX_AVX512_MASK   (X86_XSTATE_AVX_MASK | X86_XSTATE_AVX512)

◆ X86_XSTATE_AVX_MASK

#define X86_XSTATE_AVX_MASK   (X86_XSTATE_SSE_MASK | X86_XSTATE_AVX)

◆ X86_XSTATE_AVX_MPX_AVX512_PKU_MASK

#define X86_XSTATE_AVX_MPX_AVX512_PKU_MASK
Value:
#define X86_XSTATE_PKRU
Definition: x86-xstate.h:38
#define X86_XSTATE_AVX512
Definition: x86-xstate.h:35
#define X86_XSTATE_AVX_MPX_MASK
Definition: x86-xstate.h:45

Definition at line 47 of file x86-xstate.h.

Referenced by selftests::tdesc::i386_tdesc_test().

◆ X86_XSTATE_AVX_MPX_MASK

#define X86_XSTATE_AVX_MPX_MASK   (X86_XSTATE_AVX_MASK | X86_XSTATE_MPX)

Definition at line 45 of file x86-xstate.h.

Referenced by selftests::tdesc::i386_tdesc_test(), and xcr0_to_tdesc_idx().

◆ X86_XSTATE_AVX_SIZE

#define X86_XSTATE_AVX_SIZE   832

Definition at line 54 of file x86-xstate.h.

◆ X86_XSTATE_BNDCFG

#define X86_XSTATE_BNDCFG   (1ULL << 4)

Definition at line 28 of file x86-xstate.h.

Referenced by i387_cache_to_xsave(), and i387_xsave_to_cache().

◆ X86_XSTATE_BNDCFG_SIZE

#define X86_XSTATE_BNDCFG_SIZE   1088

Definition at line 56 of file x86-xstate.h.

◆ X86_XSTATE_BNDREGS

#define X86_XSTATE_BNDREGS   (1ULL << 3)

Definition at line 27 of file x86-xstate.h.

Referenced by i387_cache_to_xsave(), and i387_xsave_to_cache().

◆ X86_XSTATE_BNDREGS_SIZE

#define X86_XSTATE_BNDREGS_SIZE   1024

Definition at line 55 of file x86-xstate.h.

◆ X86_XSTATE_K

#define X86_XSTATE_K   (1ULL << 5)

Definition at line 32 of file x86-xstate.h.

Referenced by i387_cache_to_xsave(), and i387_xsave_to_cache().

◆ X86_XSTATE_MAX_SIZE

#define X86_XSTATE_MAX_SIZE   2696

Definition at line 59 of file x86-xstate.h.

◆ X86_XSTATE_MPX

#define X86_XSTATE_MPX   (X86_XSTATE_BNDREGS | X86_XSTATE_BNDCFG)

Definition at line 29 of file x86-xstate.h.

Referenced by xcr0_to_tdesc_idx().

◆ X86_XSTATE_MPX_MASK

#define X86_XSTATE_MPX_MASK   (X86_XSTATE_SSE_MASK | X86_XSTATE_MPX)

Definition at line 44 of file x86-xstate.h.

Referenced by selftests::tdesc::i386_tdesc_test().

◆ X86_XSTATE_PKRU

#define X86_XSTATE_PKRU   (1ULL << 9)

Definition at line 38 of file x86-xstate.h.

Referenced by i387_cache_to_xsave(), i387_xsave_to_cache(), and xcr0_to_tdesc_idx().

◆ X86_XSTATE_PKRU_SIZE

#define X86_XSTATE_PKRU_SIZE   2696

Definition at line 58 of file x86-xstate.h.

◆ X86_XSTATE_SIZE

#define X86_XSTATE_SIZE (   XCR0)
Value:
#define HAS_AVX(XCR0)
Definition: x86-xstate.h:64
#define HAS_AVX512(XCR0)
Definition: x86-xstate.h:65
#define X86_XSTATE_SSE_SIZE
Definition: x86-xstate.h:53
#define X86_XSTATE_PKRU_SIZE
Definition: x86-xstate.h:58
#define X86_XSTATE_BNDCFG_SIZE
Definition: x86-xstate.h:56
#define X86_XSTATE_AVX512_SIZE
Definition: x86-xstate.h:57
#define X86_XSTATE_AVX_SIZE
Definition: x86-xstate.h:54
#define HAS_PKRU(XCR0)
Definition: x86-xstate.h:66
#define HAS_MPX(XCR0)
Definition: x86-xstate.h:63

Definition at line 69 of file x86-xstate.h.

Referenced by x86_linux_read_description().

◆ X86_XSTATE_SSE

#define X86_XSTATE_SSE   (1ULL << 1)

◆ X86_XSTATE_SSE_MASK

#define X86_XSTATE_SSE_MASK   (X86_XSTATE_X87 | X86_XSTATE_SSE)

◆ X86_XSTATE_SSE_SIZE

#define X86_XSTATE_SSE_SIZE   576

Definition at line 53 of file x86-xstate.h.

Referenced by x86_linux_read_description().

◆ X86_XSTATE_X87

#define X86_XSTATE_X87   (1ULL << 0)

◆ X86_XSTATE_X87_MASK

#define X86_XSTATE_X87_MASK   X86_XSTATE_X87

Definition at line 41 of file x86-xstate.h.

◆ X86_XSTATE_ZMM

#define X86_XSTATE_ZMM   (1ULL << 7)

Definition at line 34 of file x86-xstate.h.

Referenced by i387_cache_to_xsave(), and i387_xsave_to_cache().

◆ X86_XSTATE_ZMM_H

#define X86_XSTATE_ZMM_H   (1ULL << 6)

Definition at line 33 of file x86-xstate.h.

Referenced by i387_cache_to_xsave(), and i387_xsave_to_cache().