forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user