Received: from eggs.gnu.org ([209.51.188.92]:47745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMQSv-000264-FL for qemu-devel@nongnu.org; Fri, 03 May 2019 01:10:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMQSu-0006iY-M0 for qemu-devel@nongnu.org; Fri, 03 May 2019 01:10:33 -0400 References: <20190503002206.9751-1-driver1998@foxmail.com> <20190503003707.10185-1-driver1998@foxmail.com> From: Thomas Huth Message-ID: <35fd656a-aef3-04a5-0a11-2bcfcf897440@redhat.com> Date: Fri, 3 May 2019 07:10:27 +0200 MIME-Version: 1.0 In-Reply-To: <20190503003707.10185-1-driver1998@foxmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 3/4] util/cacheinfo: Use uint64_t on LLP64 model to satisfy Windows ARM64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cao Jiaxi , qemu-devel@nongnu.org Cc: QEMU Trivial , qemu-arm@nongnu.org On 03/05/2019 02.37, 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..eebe1ce9c5 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; > + 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 > Reviewed-by: Thomas Huth