GDB (xrefs)

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 amd64_linux_core_read_description(), i387_supply_xsave(), and x86_linux_read_description().

## ◆ X86_XSTATE_AVX

#define X86_XSTATE_AVX (1ULL << 2)

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

Referenced by amd64_create_target_description(), amd64_linux_read_description(), amd64_target_description(), i386_create_target_description(), i386_linux_iterate_over_regset_sections(), i386_linux_read_description(), i386_target_description(), i386fbsd_iterate_over_regset_sections(), i387_collect_xsave(), and i387_supply_xsave().

## ◆ X86_XSTATE_AVX512

#define X86_XSTATE_AVX512

Value:
(X86_XSTATE_K | X86_XSTATE_ZMM_H \
| X86_XSTATE_ZMM)
X86_XSTATE_ZMM_H
#define X86_XSTATE_ZMM_H
Definition: x86-xstate.h:33
X86_XSTATE_ZMM
#define X86_XSTATE_ZMM
Definition: x86-xstate.h:34
X86_XSTATE_K
#define X86_XSTATE_K
Definition: x86-xstate.h:32

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

Referenced by amd64_create_target_description(), amd64_linux_read_description(), amd64_target_description(), i386_create_target_description(), i386_linux_read_description(), and i386_target_description().

## ◆ 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)

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

Referenced by _initialize_amd64_linux_tdep(), _initialize_amd64_tdep(), _initialize_i386_linux_tdep(), _initialize_i386_tdep(), i386_register_reggroup_p(), and i386_validate_tdesc_p().

## ◆ X86_XSTATE_AVX_MASK

#define X86_XSTATE_AVX_MASK (X86_XSTATE_SSE_MASK | X86_XSTATE_AVX)

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

Referenced by _initialize_amd64_linux_tdep(), _initialize_amd64_tdep(), _initialize_i386_linux_tdep(), _initialize_i386_tdep(), i386_register_reggroup_p(), and i386_validate_tdesc_p().

## ◆ X86_XSTATE_AVX_MPX_AVX512_PKU_MASK

#define X86_XSTATE_AVX_MPX_AVX512_PKU_MASK

Value:
(X86_XSTATE_AVX_MPX_MASK\
| X86_XSTATE_AVX512 | X86_XSTATE_PKRU)
X86_XSTATE_PKRU
#define X86_XSTATE_PKRU
Definition: x86-xstate.h:38
X86_XSTATE_AVX512
#define X86_XSTATE_AVX512
Definition: x86-xstate.h:35
X86_XSTATE_AVX_MPX_MASK
#define X86_XSTATE_AVX_MPX_MASK
Definition: x86-xstate.h:45

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

Referenced by _initialize_amd64_linux_tdep(), _initialize_amd64_tdep(), _initialize_i386_linux_tdep(), and _initialize_i386_tdep().

## ◆ 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 _initialize_amd64_linux_tdep(), _initialize_amd64_tdep(), _initialize_i386_linux_tdep(), and _initialize_i386_tdep().

## ◆ X86_XSTATE_AVX_SIZE

#define X86_XSTATE_AVX_SIZE 832

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

Referenced by i386_linux_core_read_xcr0(), and i386fbsd_core_read_xcr0().

## ◆ X86_XSTATE_BNDCFG

#define X86_XSTATE_BNDCFG (1ULL << 4)

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

Referenced by i387_collect_xsave(), and i387_supply_xsave().

## ◆ 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_collect_xsave(), and i387_supply_xsave().

## ◆ 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_collect_xsave(), and i387_supply_xsave().

## ◆ X86_XSTATE_MAX_SIZE

#define X86_XSTATE_MAX_SIZE 2696

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

Referenced by amd64_linux_fetch_inferior_registers(), amd64_linux_store_inferior_registers(), fetch_xstateregs(), and store_xstateregs().

## ◆ X86_XSTATE_MPX

#define X86_XSTATE_MPX (X86_XSTATE_BNDREGS | X86_XSTATE_BNDCFG)

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

Referenced by amd64_create_target_description(), amd64_linux_read_description(), amd64_target_description(), i386_create_target_description(), i386_linux_read_description(), and i386_target_description().

## ◆ 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 _initialize_amd64_linux_tdep(), _initialize_amd64_tdep(), _initialize_i386_linux_tdep(), _initialize_i386_tdep(), i386_register_reggroup_p(), and i386_validate_tdesc_p().

## ◆ X86_XSTATE_PKRU

#define X86_XSTATE_PKRU (1ULL << 9)

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

Referenced by amd64_create_target_description(), amd64_linux_read_description(), amd64_target_description(), i386_create_target_description(), i386_linux_read_description(), i386_target_description(), i386_validate_tdesc_p(), i387_collect_xsave(), and i387_supply_xsave().

## ◆ 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:
(HAS_PKRU (XCR0) ? X86_XSTATE_PKRU_SIZE : \
(HAS_AVX512 (XCR0) ? X86_XSTATE_AVX512_SIZE : \
(HAS_MPX (XCR0) ? X86_XSTATE_BNDCFG_SIZE : \
(HAS_AVX (XCR0) ? X86_XSTATE_AVX_SIZE : X86_XSTATE_SSE_SIZE))))
HAS_AVX
#define HAS_AVX(XCR0)
Definition: x86-xstate.h:64
HAS_AVX512
#define HAS_AVX512(XCR0)
Definition: x86-xstate.h:65
X86_XSTATE_SSE_SIZE
#define X86_XSTATE_SSE_SIZE
Definition: x86-xstate.h:53
X86_XSTATE_PKRU_SIZE
#define X86_XSTATE_PKRU_SIZE
Definition: x86-xstate.h:58
X86_XSTATE_BNDCFG_SIZE
#define X86_XSTATE_BNDCFG_SIZE
Definition: x86-xstate.h:56
X86_XSTATE_AVX512_SIZE
#define X86_XSTATE_AVX512_SIZE
Definition: x86-xstate.h:57
X86_XSTATE_AVX_SIZE
#define X86_XSTATE_AVX_SIZE
Definition: x86-xstate.h:54
HAS_PKRU
#define HAS_PKRU(XCR0)
Definition: x86-xstate.h:66
HAS_MPX
#define HAS_MPX(XCR0)
Definition: x86-xstate.h:63

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

Referenced by amd64_linux_iterate_over_regset_sections(), amd64fbsd_iterate_over_regset_sections(), i386_linux_iterate_over_regset_sections(), i386fbsd_iterate_over_regset_sections(), and i387_collect_xsave().

## ◆ X86_XSTATE_SSE

#define X86_XSTATE_SSE (1ULL << 1)

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

Referenced by i386_create_target_description(), i386_linux_iterate_over_regset_sections(), i386_linux_read_description(), i386_target_description(), i387_collect_xsave(), and i387_supply_xsave().

## ◆ X86_XSTATE_SSE_MASK

#define X86_XSTATE_SSE_MASK (X86_XSTATE_X87 | X86_XSTATE_SSE)

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

Referenced by _initialize_amd64_linux_tdep(), _initialize_amd64_tdep(), _initialize_i386_linux_tdep(), _initialize_i386_tdep(), amd64_dicos_init_abi(), amd64_linux_init_abi(), amd64_sol2_init_abi(), amd64_windows_init_abi(), amd64_x32_linux_init_abi(), amd64fbsd_init_abi(), amd64fbsd_read_description(), amd64nbsd_init_abi(), amd64obsd_init_abi(), i386_gdbarch_init(), i386_linux_core_read_description(), i386_linux_core_read_xcr0(), i386_linux_init_abi(), i386_register_reggroup_p(), i386_validate_tdesc_p(), i386fbsd_core_read_xcr0(), x86_darwin_init_abi_64(), and x86_linux_read_description().

## ◆ 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)

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

Referenced by i386_create_target_description(), i386_linux_read_description(), i387_collect_xsave(), and i387_supply_xsave().

## ◆ X86_XSTATE_X87_MASK

#define X86_XSTATE_X87_MASK X86_XSTATE_X87

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

Referenced by _initialize_i386_linux_tdep(), _initialize_i386_tdep(), i386_go32_init_abi(), i386_linux_core_read_description(), i386_validate_tdesc_p(), and x86_linux_read_description().

## ◆ X86_XSTATE_ZMM

#define X86_XSTATE_ZMM (1ULL << 7)

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

Referenced by i387_collect_xsave(), and i387_supply_xsave().

## ◆ X86_XSTATE_ZMM_H

#define X86_XSTATE_ZMM_H (1ULL << 6)

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

Referenced by i387_collect_xsave(), and i387_supply_xsave().