|
69 | 69 | #define HA_MAX_NUM_FLDS 4 |
70 | 70 |
|
71 | 71 | /* All possible aarch64 target descriptors. */ |
72 | | -struct target_desc *tdesc_aarch64_list[AARCH64_MAX_SVE_VQ + 1]; |
| 72 | +struct target_desc *tdesc_aarch64_list[AARCH64_MAX_SVE_VQ + 1][2/*pauth*/]; |
73 | 73 |
|
74 | 74 | /* The standard register names, and all the valid aliases for them. */ |
75 | 75 | static const struct |
@@ -2885,18 +2885,18 @@ aarch64_displaced_step_hw_singlestep (struct gdbarch *gdbarch, |
2885 | 2885 | (It is not possible to set VQ to zero on an SVE system). */ |
2886 | 2886 |
|
2887 | 2887 | const target_desc * |
2888 | | -aarch64_read_description (uint64_t vq) |
| 2888 | +aarch64_read_description (uint64_t vq, bool pauth_p) |
2889 | 2889 | { |
2890 | 2890 | if (vq > AARCH64_MAX_SVE_VQ) |
2891 | 2891 | error (_("VQ is %" PRIu64 ", maximum supported value is %d"), vq, |
2892 | 2892 | AARCH64_MAX_SVE_VQ); |
2893 | 2893 |
|
2894 | | - struct target_desc *tdesc = tdesc_aarch64_list[vq]; |
| 2894 | + struct target_desc *tdesc = tdesc_aarch64_list[vq][pauth_p]; |
2895 | 2895 |
|
2896 | 2896 | if (tdesc == NULL) |
2897 | 2897 | { |
2898 | | - tdesc = aarch64_create_target_description (vq); |
2899 | | - tdesc_aarch64_list[vq] = tdesc; |
| 2898 | + tdesc = aarch64_create_target_description (vq, pauth_p); |
| 2899 | + tdesc_aarch64_list[vq][pauth_p] = tdesc; |
2900 | 2900 | } |
2901 | 2901 |
|
2902 | 2902 | return tdesc; |
@@ -2961,7 +2961,7 @@ aarch64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) |
2961 | 2961 |
|
2962 | 2962 | /* Ensure we always have a target description. */ |
2963 | 2963 | if (!tdesc_has_registers (tdesc)) |
2964 | | - tdesc = aarch64_read_description (0); |
| 2964 | + tdesc = aarch64_read_description (0, false); |
2965 | 2965 | gdb_assert (tdesc); |
2966 | 2966 |
|
2967 | 2967 | feature_core = tdesc_find_feature (tdesc, "org.gnu.gdb.aarch64.core"); |
@@ -3190,7 +3190,7 @@ When on, AArch64 specific debugging is enabled."), |
3190 | 3190 | selftests::register_test ("aarch64-process-record", |
3191 | 3191 | selftests::aarch64_process_record_test); |
3192 | 3192 | selftests::record_xml_tdesc ("aarch64.xml", |
3193 | | - aarch64_create_target_description (0)); |
| 3193 | + aarch64_create_target_description (0, false)); |
3194 | 3194 | #endif |
3195 | 3195 | } |
3196 | 3196 |
|
|
0 commit comments