diff options
author | Andrew Burgess <aburgess@redhat.com> | 2024-03-26 18:52:36 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-03-26 18:52:36 +0000 |
commit | 0991b56074af7e6b106015c67925fdcfe039f077 (patch) | |
tree | 0a93c263877d55504e4136ea5799e40b3f2e1ba4 /gdb/arch | |
parent | cba2791ca6a984bd533ab643f4d92e3f5b278b43 (diff) | |
download | gdb-0991b56074af7e6b106015c67925fdcfe039f077.zip gdb-0991b56074af7e6b106015c67925fdcfe039f077.tar.gz gdb-0991b56074af7e6b106015c67925fdcfe039f077.tar.bz2 |
Revert "gdb/arch: assert that X86_XSTATE_MPX is not set for x32"
This reverts commit efba976d9713a92b4507ccfef2257e4589da2798.
Diffstat (limited to 'gdb/arch')
-rw-r--r-- | gdb/arch/amd64.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/arch/amd64.c b/gdb/arch/amd64.c index f182e68..b8ff427 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); |