diff options
Diffstat (limited to 'gdb/i386-tdep.h')
-rw-r--r-- | gdb/i386-tdep.h | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h index a85e0a9..e849b33 100644 --- a/gdb/i386-tdep.h +++ b/gdb/i386-tdep.h @@ -1,6 +1,6 @@ /* Target-dependent code for the i386. - Copyright (C) 2001-2024 Free Software Foundation, Inc. + Copyright (C) 2001-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef I386_TDEP_H -#define I386_TDEP_H +#ifndef GDB_I386_TDEP_H +#define GDB_I386_TDEP_H #include "gdbarch.h" #include "infrun.h" @@ -166,21 +166,6 @@ struct i386_gdbarch_tdep : gdbarch_tdep_base /* YMM16-31 register names. Only used for tdesc_numbered_register. */ const char * const *ymm16h_register_names = nullptr; - /* Register number for %bnd0r. Set this to -1 to indicate the absence - bound registers. */ - int bnd0r_regnum = 0; - - /* Register number for pseudo register %bnd0. Set this to -1 to indicate the absence - bound registers. */ - int bnd0_regnum = 0; - - /* Register number for %bndcfgu. Set this to -1 to indicate the absence - bound control registers. */ - int bndcfgu_regnum = 0; - - /* MPX register names. Only used for tdesc_numbered_register. */ - const char * const *mpx_register_names = nullptr; - /* Register number for %zmm0h. Set this to -1 to indicate the absence of ZMM_HI256 register support. */ int zmm0h_regnum = 0; @@ -246,7 +231,6 @@ struct i386_gdbarch_tdep : gdbarch_tdep_base struct type *i386_ymm_type = nullptr; struct type *i386_zmm_type = nullptr; struct type *i387_ext_type = nullptr; - struct type *i386_bnd_type = nullptr; /* Process record/replay target. */ /* The map for registers because the AMD64's registers order @@ -298,6 +282,8 @@ enum i386_regnum I386_MXCSR_REGNUM = 40, /* %mxcsr */ I386_YMM0H_REGNUM, /* %ymm0h */ I386_YMM7H_REGNUM = I386_YMM0H_REGNUM + 7, + /* MPX is deprecated. Yet we keep this to not give the registers below + a new number. That could break older gdbservers. */ I386_BND0R_REGNUM, I386_BND3R_REGNUM = I386_BND0R_REGNUM + 3, I386_BNDCFGU_REGNUM, @@ -339,6 +325,7 @@ enum record_i386_regnum X86_RECORD_ES_REGNUM, X86_RECORD_FS_REGNUM, X86_RECORD_GS_REGNUM, + X86_RECORD_XMM0_REGNUM, }; #define I386_NUM_GREGS 16 @@ -346,7 +333,6 @@ enum record_i386_regnum #define I386_SSE_NUM_REGS (I386_MXCSR_REGNUM + 1) #define I386_AVX_NUM_REGS (I386_YMM7H_REGNUM + 1) -#define I386_MPX_NUM_REGS (I386_BNDSTATUS_REGNUM + 1) #define I386_AVX512_NUM_REGS (I386_ZMM7H_REGNUM + 1) #define I386_PKEYS_NUM_REGS (I386_PKRU_REGNUM + 1) #define I386_NUM_REGS (I386_GSBASE_REGNUM + 1) @@ -365,7 +351,6 @@ extern int i386_xmm_regnum_p (struct gdbarch *gdbarch, int regnum); extern int i386_xmm_avx512_regnum_p (struct gdbarch * gdbarch, int regnum); extern int i386_ymm_regnum_p (struct gdbarch *gdbarch, int regnum); extern int i386_ymm_avx512_regnum_p (struct gdbarch *gdbarch, int regnum); -extern int i386_bnd_regnum_p (struct gdbarch *gdbarch, int regnum); extern int i386_k_regnum_p (struct gdbarch *gdbarch, int regnum); extern int i386_zmm_regnum_p (struct gdbarch *gdbarch, int regnum); extern int i386_zmmh_regnum_p (struct gdbarch *gdbarch, int regnum); @@ -468,10 +453,6 @@ extern int i386_process_record (struct gdbarch *gdbarch, extern const struct target_desc *i386_target_description (uint64_t xcr0, bool segments); -/* Return true iff the current target is MPX enabled. */ -extern int i386_mpx_enabled (void); - - /* Functions and variables exported from i386-bsd-tdep.c. */ extern void i386bsd_init_abi (struct gdbarch_info, struct gdbarch *); @@ -488,4 +469,4 @@ extern int i386_stap_is_single_operand (struct gdbarch *gdbarch, extern expr::operation_up i386_stap_parse_special_token (struct gdbarch *gdbarch, struct stap_parse_info *p); -#endif /* i386-tdep.h */ +#endif /* GDB_I386_TDEP_H */ |