[lldb] [Process/NetBSD] Use XStateRegSet for all FPU registers
authorMichał Górny <mgorny@moritz.systems>
Wed, 14 Oct 2020 07:57:33 +0000 (09:57 +0200)
committerMichał Górny <mgorny@moritz.systems>
Sat, 24 Oct 2020 07:17:53 +0000 (09:17 +0200)
commitd96cb52830fd7109cead60956a9b108935988e5c
treef74f12863133d0a20e51cfda43fda44d78242f8d
parent84ce6b9991bb6db1c37897aca55978a377ce931a
[lldb] [Process/NetBSD] Use XStateRegSet for all FPU registers

Unify the x86 regset API to use XStateRegSet for all FPU registers,
therefore eliminating the legacy API based on FPRegSet.  This makes
the code a little bit simpler but most notably, it provides future
compatibility for register caching.

Since the NetBSD kernel takes care of providing compatibility with
pre-XSAVE processors, PT_{G,S}ETXSTATE can be used on systems supporting
only FXSAVE or even plain FSAVE (and unlike PT_{G,S}ETXMMREGS, it
clearly indicates that XMM registers are not supported).

Differential Revision: https://reviews.llvm.org/D90034
lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp
lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.h