aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/arch/amd64.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/arch/amd64.c b/gdb/arch/amd64.c
index b8ff427..f182e68 100644
--- a/gdb/arch/amd64.c
+++ b/gdb/arch/amd64.c
@@ -66,8 +66,12 @@ 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) && !is_x32)
- regnum = create_feature_i386_64bit_mpx (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_AVX512)
regnum = create_feature_i386_64bit_avx512 (tdesc.get (), regnum);