aboutsummaryrefslogtreecommitdiff
path: root/gdb/aarch64-tdep.c
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2018-06-04 12:13:43 +0100
committerAlan Hayward <alan.hayward@arm.com>2018-06-04 12:14:53 +0100
commit1332a1400145b5cca04c4d1ea77e0191d8dc5727 (patch)
tree015a3270ca578900fec6fd4006993269b5632c58 /gdb/aarch64-tdep.c
parentba2d2bb24ea593c7fb17f51ef23f122064bb17d7 (diff)
downloadgdb-1332a1400145b5cca04c4d1ea77e0191d8dc5727.zip
gdb-1332a1400145b5cca04c4d1ea77e0191d8dc5727.tar.gz
gdb-1332a1400145b5cca04c4d1ea77e0191d8dc5727.tar.bz2
Use uint64_t for aarch64 tdep VQ
Diffstat (limited to 'gdb/aarch64-tdep.c')
-rw-r--r--gdb/aarch64-tdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c
index 6674b76..0172e4c 100644
--- a/gdb/aarch64-tdep.c
+++ b/gdb/aarch64-tdep.c
@@ -2875,7 +2875,7 @@ aarch64_read_description (uint64_t vq)
/* Return the VQ used when creating the target description TDESC. */
-static long
+static uint64_t
aarch64_get_tdesc_vq (const struct target_desc *tdesc)
{
const struct tdesc_feature *feature_sve;
@@ -2888,7 +2888,8 @@ aarch64_get_tdesc_vq (const struct target_desc *tdesc)
if (feature_sve == nullptr)
return 0;
- long vl = tdesc_register_size (feature_sve, aarch64_sve_register_names[0]);
+ uint64_t vl = tdesc_register_size (feature_sve,
+ aarch64_sve_register_names[0]);
return sve_vq_from_vl (vl);
}