GDBserver

Classes | Functions | Variables
i387-fp.c File Reference
`#include "server.h"`
`#include "i387-fp.h"`
`#include "x86-xstate.h"`

Go to the source code of this file.

## Classes
struct | i387_fsave
struct | i387_fxsave
struct | i387_xsave

## Functions
void | i387_cache_to_fsave (struct regcache *regcache, void *buf)
void | i387_fsave_to_cache (struct regcache *regcache, const void *buf)
void | i387_cache_to_fxsave (struct regcache *regcache, void *buf)
void | i387_cache_to_xsave (struct regcache *regcache, void *buf)
static int | i387_ftag (struct i387_fxsave *fp, int regno)
void | i387_fxsave_to_cache (struct regcache *regcache, const void *buf)
void | i387_xsave_to_cache (struct regcache *regcache, const void *buf)

## Variables
static const int | num_mpx_bnd_registers = 4
static const int | num_mpx_cfg_registers = 2
static const int | num_avx512_k_registers = 8
static const int | num_avx512_zmmh_low_registers = 16
static const int | num_avx512_zmmh_high_registers = 16
static const int | num_avx512_ymmh_registers = 16
static const int | num_avx512_xmm_registers = 16
static const int | num_pkeys_registers = 1
unsigned long long | x86_xcr0 = X86_XSTATE_SSE_MASK

## Function Documentation

## ◆ i387_cache_to_fsave()

void i387_cache_to_fsave | ( | struct regcache * | regcache,
|  | void * | buf
| ) |  |

Definition at line 147 of file i387-fp.c.

References collect_register(), collect_register_by_name(), find_regno(), fp, and regcache::tdesc.

Referenced by x86_fill_fpregset().

## ◆ i387_cache_to_fxsave()

void i387_cache_to_fxsave | ( | struct regcache * | regcache,
|  | void * | buf
| ) |  |

Definition at line 223 of file i387-fp.c.

References collect_register(), collect_register_by_name(), find_regno(), fp, register_size(), and regcache::tdesc.

Referenced by x86_fill_fpregset(), and x86_fill_fpxregset().

## ◆ i387_cache_to_xsave()

void i387_cache_to_xsave | ( | struct regcache * | regcache,
|  | void * | buf
| ) |  |

Definition at line 276 of file i387-fp.c.

References collect_register(), collect_register_by_name(), find_regno(), fp, memset(), num_avx512_k_registers, num_avx512_xmm_registers, num_avx512_ymmh_registers, num_avx512_zmmh_high_registers, num_avx512_zmmh_low_registers, num_mpx_bnd_registers, num_mpx_cfg_registers, num_pkeys_registers, register_size(), regcache::tdesc, x86_xcr0, X86_XSTATE_AVX, X86_XSTATE_BNDCFG, X86_XSTATE_BNDREGS, X86_XSTATE_K, X86_XSTATE_PKRU, X86_XSTATE_SSE, X86_XSTATE_X87, X86_XSTATE_ZMM, X86_XSTATE_ZMM_H, and i387_xsave::xstate_bv.

Referenced by x86_fill_xstateregset().

## ◆ i387_fsave_to_cache()

void i387_fsave_to_cache | ( | struct regcache * | regcache,
|  | const void * | buf
| ) |  |

Definition at line 187 of file i387-fp.c.

References find_regno(), fp, supply_register(), supply_register_by_name(), and regcache::tdesc.

Referenced by x86_store_fpregset().

## ◆ i387_ftag()

static int i387_ftag | ( | struct i387_fxsave * | fp,
|  | int | regno
| ) |  |
| static

Definition at line 566 of file i387-fp.c.

References fp.

Referenced by i387_fxsave_to_cache(), and i387_xsave_to_cache().

## ◆ i387_fxsave_to_cache()

void i387_fxsave_to_cache | ( | struct regcache * | regcache,
|  | const void * | buf
| ) |  |

Definition at line 613 of file i387-fp.c.

References find_regno(), fp, i387_ftag(), register_size(), supply_register(), supply_register_by_name(), and regcache::tdesc.

Referenced by x86_store_fpregset(), and x86_store_fpxregset().

## ◆ i387_xsave_to_cache()

void i387_xsave_to_cache | ( | struct regcache * | regcache,
|  | const void * | buf
| ) |  |

Definition at line 666 of file i387-fp.c.

References find_regno(), fp, i387_ftag(), num_avx512_k_registers, num_avx512_xmm_registers, num_avx512_ymmh_registers, num_avx512_zmmh_high_registers, num_avx512_zmmh_low_registers, num_mpx_bnd_registers, num_mpx_cfg_registers, num_pkeys_registers, register_size(), supply_register(), supply_register_by_name(), supply_register_zeroed(), regcache::tdesc, x86_xcr0, X86_XSTATE_AVX, X86_XSTATE_BNDCFG, X86_XSTATE_BNDREGS, X86_XSTATE_K, X86_XSTATE_PKRU, X86_XSTATE_SSE, X86_XSTATE_X87, X86_XSTATE_ZMM, and X86_XSTATE_ZMM_H.

Referenced by x86_store_xstateregset().

## Variable Documentation

## ◆ num_avx512_k_registers

const int num_avx512_k_registers = 8
| static

Definition at line 25 of file i387-fp.c.

Referenced by i387_cache_to_xsave(), and i387_xsave_to_cache().

## ◆ num_avx512_xmm_registers

const int num_avx512_xmm_registers = 16
| static

Definition at line 29 of file i387-fp.c.

Referenced by i387_cache_to_xsave(), and i387_xsave_to_cache().

## ◆ num_avx512_ymmh_registers

const int num_avx512_ymmh_registers = 16
| static

Definition at line 28 of file i387-fp.c.

Referenced by i387_cache_to_xsave(), and i387_xsave_to_cache().

## ◆ num_avx512_zmmh_high_registers

const int num_avx512_zmmh_high_registers = 16
| static

Definition at line 27 of file i387-fp.c.

Referenced by i387_cache_to_xsave(), and i387_xsave_to_cache().

## ◆ num_avx512_zmmh_low_registers

const int num_avx512_zmmh_low_registers = 16
| static

Definition at line 26 of file i387-fp.c.

Referenced by i387_cache_to_xsave(), and i387_xsave_to_cache().

## ◆ num_mpx_bnd_registers

const int num_mpx_bnd_registers = 4
| static

Definition at line 23 of file i387-fp.c.

Referenced by i387_cache_to_xsave(), and i387_xsave_to_cache().

## ◆ num_mpx_cfg_registers

const int num_mpx_cfg_registers = 2
| static

Definition at line 24 of file i387-fp.c.

Referenced by i387_cache_to_xsave(), and i387_xsave_to_cache().

## ◆ num_pkeys_registers

const int num_pkeys_registers = 1
| static

Definition at line 30 of file i387-fp.c.

Referenced by i387_cache_to_xsave(), and i387_xsave_to_cache().

## ◆ x86_xcr0

unsigned long long x86_xcr0 = X86_XSTATE_SSE_MASK

Definition at line 883 of file i387-fp.c.

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