public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Revert "gdb/arch: assert that X86_XSTATE_MPX is not set for x32"
@ 2024-03-26 18:59 Andrew Burgess
0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2024-03-26 18:59 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0991b56074af7e6b106015c67925fdcfe039f077
commit 0991b56074af7e6b106015c67925fdcfe039f077
Author: Andrew Burgess <aburgess@redhat.com>
Date: Tue Mar 26 18:52:36 2024 +0000
Revert "gdb/arch: assert that X86_XSTATE_MPX is not set for x32"
This reverts commit efba976d9713a92b4507ccfef2257e4589da2798.
Diff:
---
gdb/arch/amd64.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/gdb/arch/amd64.c b/gdb/arch/amd64.c
index f182e686dda..b8ff4270079 100644
--- a/gdb/arch/amd64.c
+++ b/gdb/arch/amd64.c
@@ -66,12 +66,8 @@ amd64_create_target_description (uint64_t xcr0, bool is_x32, bool is_linux,
if (xcr0 & X86_XSTATE_AVX)
regnum = create_feature_i386_64bit_avx (tdesc.get (), regnum);
- if (xcr0 & X86_XSTATE_MPX)
- {
- /* MPX is not available on x32. */
- gdb_assert (!is_x32);
- regnum = create_feature_i386_64bit_mpx (tdesc.get (), regnum);
- }
+ if ((xcr0 & X86_XSTATE_MPX) && !is_x32)
+ regnum = create_feature_i386_64bit_mpx (tdesc.get (), regnum);
if (xcr0 & X86_XSTATE_AVX512)
regnum = create_feature_i386_64bit_avx512 (tdesc.get (), regnum);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-26 18:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-26 18:59 [binutils-gdb] Revert "gdb/arch: assert that X86_XSTATE_MPX is not set for x32" Andrew Burgess
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).