From: Alan Hayward Date: Mon, 4 Jun 2018 11:13:43 +0000 (+0100) Subject: Use uint64_t for aarch64 tdep VQ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1332a1400145b5cca04c4d1ea77e0191d8dc5727;p=binutils-gdb.git Use uint64_t for aarch64 tdep VQ --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1e74a7601a0..f3b616fef46 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-06-04 Alan Hayward + + * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ. + * aarch64-tdep.h (struct gdbarch_tdep): Likewise. + 2018-06-04 Alan Hayward * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE. diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c index 6674b7654e5..0172e4ccd17 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); } diff --git a/gdb/aarch64-tdep.h b/gdb/aarch64-tdep.h index b6b9b30e715..598a0aafa2f 100644 --- a/gdb/aarch64-tdep.h +++ b/gdb/aarch64-tdep.h @@ -75,7 +75,7 @@ struct gdbarch_tdep int (*aarch64_syscall_record) (struct regcache *regcache, unsigned long svc_number); /* The VQ value for SVE targets, or zero if SVE is not supported. */ - long vq; + uint64_t vq; /* Returns true if the target supports SVE. */ bool has_sve () const