Received: from eggs.gnu.org ([209.51.188.92]:40850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLYNE-0003MD-81 for qemu-devel@nongnu.org; Tue, 30 Apr 2019 15:25:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLYAl-0004dG-I2 for qemu-devel@nongnu.org; Tue, 30 Apr 2019 15:12:12 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:35145) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLYAl-0004cR-Cn for qemu-devel@nongnu.org; Tue, 30 Apr 2019 15:12:11 -0400 Received: by mail-wm1-f66.google.com with SMTP id y197so5003693wmd.0 for ; Tue, 30 Apr 2019 12:12:10 -0700 (PDT) References: <20190430181326.1314-1-driver1998@foxmail.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Tue, 30 Apr 2019 21:12:08 +0200 MIME-Version: 1.0 In-Reply-To: <20190430181326.1314-1-driver1998@foxmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v2 3/4] util/cacheinfo.c: Use uintptr_t instead of unsigned long in AArch64 arch_cache_info() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cao Jiaxi , qemu-devel@nongnu.org, qemu-arm On 4/30/19 8:13 PM, Cao Jiaxi wrote: > Windows ARM64 uses LLP64 model, which breaks current assumptions. > > Signed-off-by: Cao Jiaxi > --- > util/cacheinfo.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/util/cacheinfo.c b/util/cacheinfo.c > index 3cd080b83d..ce6f0dbf6a 100644 > --- a/util/cacheinfo.c > +++ b/util/cacheinfo.c > @@ -107,7 +107,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; > + uintptr_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 > Reviewed-by: Philippe Mathieu-Daudé