diff --git a/qemu/util/cacheinfo.c b/qemu/util/cacheinfo.c index 82c5358c..2937d451 100644 --- a/qemu/util/cacheinfo.c +++ b/qemu/util/cacheinfo.c @@ -101,7 +101,7 @@ static void sys_cache_info(int *isize, int *dsize) static void arch_cache_info(int *isize, int *dsize) { if (*isize == 0 || *dsize == 0) { - unsigned long ctr; + uint64_t ctr; /* The real cache geometry is in CCSIDR_EL1/CLIDR_EL1/CSSELR_EL1, but (at least under Linux) these are marked protected by the