Use uint64_t for aarch64 tdep VQ

This commit is contained in:
Alan Hayward 2018-06-04 12:13:43 +01:00
parent ba2d2bb24e
commit 1332a14001
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2018-06-04 Alan Hayward <alan.hayward@arm.com>
* aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
* aarch64-tdep.h (struct gdbarch_tdep): Likewise.
2018-06-04 Alan Hayward <alan.hayward@arm.com>
* aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.

View File

@ -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);
}

View File

@ -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