aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/netbsd-aarch64-low.cc
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-05-18 13:32:04 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2022-05-18 13:32:04 -0700
commit0ee6b1c511c0e2a6793568692d2e5418cd6bc10d (patch)
tree9bdc905affb28e3214b29ff650ef51650c020d06 /gdbserver/netbsd-aarch64-low.cc
parent04dfe7aa52171d110db813bce67c0eea5f4b18cd (diff)
downloadbinutils-0ee6b1c511c0e2a6793568692d2e5418cd6bc10d.zip
binutils-0ee6b1c511c0e2a6793568692d2e5418cd6bc10d.tar.gz
binutils-0ee6b1c511c0e2a6793568692d2e5418cd6bc10d.tar.bz2
Use aarch64_features to describe register features in target descriptions.
Replace the sve bool member of aarch64_features with a vq member that holds the vector quotient. It is zero if SVE is not present. Add std::hash<> specialization and operator== so that aarch64_features can be used as a key with std::unordered_map<>. Change the various functions that create or lookup aarch64 target descriptions to accept a const aarch64_features object rather than a growing number of arguments. Replace the multi-dimension tdesc_aarch64_list arrays used to cache target descriptions with unordered_maps indexed by aarch64_feature.
Diffstat (limited to 'gdbserver/netbsd-aarch64-low.cc')
-rw-r--r--gdbserver/netbsd-aarch64-low.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/netbsd-aarch64-low.cc b/gdbserver/netbsd-aarch64-low.cc
index b371e59..f8447b0 100644
--- a/gdbserver/netbsd-aarch64-low.cc
+++ b/gdbserver/netbsd-aarch64-low.cc
@@ -96,7 +96,7 @@ void
netbsd_aarch64_target::low_arch_setup ()
{
target_desc *tdesc
- = aarch64_create_target_description (0, false, false, false);
+ = aarch64_create_target_description ({});
static const char *expedite_regs_aarch64[] = { "x29", "sp", "pc", NULL };
init_target_desc (tdesc, expedite_regs_aarch64);