diff options
author | Andrew Burgess <aburgess@redhat.com> | 2024-03-26 18:52:27 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-03-26 18:52:27 +0000 |
commit | cba2791ca6a984bd533ab643f4d92e3f5b278b43 (patch) | |
tree | c3595a02b311b1db116b613d6fb5ebfade316a3f /gdbserver/linux-x86-low.cc | |
parent | 69324a74e344e640e0c2d4e76e4e4dfd3368cd76 (diff) | |
download | binutils-cba2791ca6a984bd533ab643f4d92e3f5b278b43.zip binutils-cba2791ca6a984bd533ab643f4d92e3f5b278b43.tar.gz binutils-cba2791ca6a984bd533ab643f4d92e3f5b278b43.tar.bz2 |
Revert "gdbserver: update target description creation for x86/linux"
This reverts commit 61bb321605fc74703adc994fd7a78e9d2495ca7a.
Diffstat (limited to 'gdbserver/linux-x86-low.cc')
-rw-r--r-- | gdbserver/linux-x86-low.cc | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gdbserver/linux-x86-low.cc b/gdbserver/linux-x86-low.cc index 6dbefdb..9bf369f 100644 --- a/gdbserver/linux-x86-low.cc +++ b/gdbserver/linux-x86-low.cc @@ -2892,17 +2892,14 @@ x86_target::get_ipa_tdesc_idx () struct regcache *regcache = get_thread_regcache (current_thread, 0); const struct target_desc *tdesc = regcache->tdesc; - if (!use_xml) - { - if (tdesc == tdesc_i386_linux_no_xml.get () #ifdef __x86_64__ - || tdesc == tdesc_amd64_linux_no_xml.get () -#endif /* __x86_64__ */ - ) - return x86_linux_xcr0_to_tdesc_idx (X86_XSTATE_SSE_MASK); - } + return amd64_get_ipa_tdesc_idx (tdesc); +#endif + + if (tdesc == tdesc_i386_linux_no_xml.get ()) + return X86_TDESC_SSE; - return x86_linux_xcr0_to_tdesc_idx (xcr0_storage); + return i386_get_ipa_tdesc_idx (tdesc); } /* The linux target ops object. */ |