Received: from eggs.gnu.org ([209.51.188.92]:36814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMMDX-0000kR-Ng for qemu-devel@nongnu.org; Thu, 02 May 2019 20:38:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMMDW-0003RX-Sb for qemu-devel@nongnu.org; Thu, 02 May 2019 20:38:23 -0400 Received: from [103.7.29.139] (port=44834 helo=smtpbg64.qq.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hMMDW-0003MU-CQ for qemu-devel@nongnu.org; Thu, 02 May 2019 20:38:22 -0400 From: Cao Jiaxi Date: Fri, 3 May 2019 08:29:30 +0800 Message-Id: <20190503002930.9991-1-driver1998@foxmail.com> In-Reply-To: <20190503002258.9799-1-driver1998@foxmail.com> References: <20190503002258.9799-1-driver1998@foxmail.com> Subject: [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: qemu-devel@nongnu.org Cc: Cao Jiaxi 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 -- 2.17.1