From nobody Wed Nov 5 10:01:05 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499672379731897.3543807717982; Mon, 10 Jul 2017 00:39:39 -0700 (PDT) Received: from localhost ([::1]:39040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUTIA-0001bM-Kt for importer@patchew.org; Mon, 10 Jul 2017 03:39:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUTFJ-0007pe-2k for qemu-devel@nongnu.org; Mon, 10 Jul 2017 03:36:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUTFE-0007cR-ET for qemu-devel@nongnu.org; Mon, 10 Jul 2017 03:36:41 -0400 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]:35057) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUTFE-0007cL-8C for qemu-devel@nongnu.org; Mon, 10 Jul 2017 03:36:36 -0400 Received: by mail-pg0-x242.google.com with SMTP id d193so11723613pgc.2 for ; Mon, 10 Jul 2017 00:36:36 -0700 (PDT) Received: from bigtime.twiddle.net (rrcs-173-197-98-123.west.biz.rr.com. [173.197.98.123]) by smtp.gmail.com with ESMTPSA id o8sm21619584pgn.52.2017.07.10.00.36.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jul 2017 00:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=6C8dpVCy9UEyafXihhONYCtfhxNRUW9Pm4dO46k6ydQ=; b=p/v+to3yfL03sE+huyGyBglEssHuI3m/j5ef6IsjRMJg3frCBCoczbp029ChNLokD2 EJZSStr9kMBO7TZUhoEyHMv6wpsqnetQKv/42fIsz/G1xA4/e3Ln+7d9GHCyKygnJGG6 +xG6x4UcsvBMGzh1khrfJ8KIFdffSIFB6UXkVxBI9cBtgfQjW5DQ9/r+SqZFmgraBXHo gCSd+7QExds44Gg+yo9Mvbe5m0iLR5FN2FI4p0DdktL3fNQ4A3hxbyo7NTao0f2ETdMM pYSGYELgpNleLjHMUlhVdrE44bg3cEqCnVPPqP8aL3ezkW6PzogBkIHLWkPSK8wdTvio qM5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=6C8dpVCy9UEyafXihhONYCtfhxNRUW9Pm4dO46k6ydQ=; b=bWCOIeMU1JE8MmWEp4atBhQwvV7tPXZBN69P4BDZOvqUt21fOsCbAbKp2JF+FRqJpQ E1nPbo+tJzNXuRM+JP4sWHSQRR5wTIpTs2vdG8lk03+aYjeOgayZIk4seIx7I/t3mb+e 0/1hUzoY9aQcQynUzzF8+MpMcPEe2+UjG4CqUg4mSikpWgpLJ1JRo0XLqM/vDBIaki0x V2o3buQ6CvqhpGgZc2MBfH5hJa+OVbdhq02nqnOybbBsH1IyRFCeMwPvO9YAmcoFU8MA HXWBYkeqfEuSAISdBf1Sc+MfEufZxE63ULeQiiSKe0FmQgfdcDsPZg+ODcTDcjAIpKpk XFbQ== X-Gm-Message-State: AIVw112dpniBFTiM4/a1WygpeVqhz6ZTpf6VYDN1dvisq/OO2jPvf4r9 8xBMlQI3SiFEO/SKQK0= X-Received: by 10.99.163.76 with SMTP id v12mr13579217pgn.37.1499672195064; Mon, 10 Jul 2017 00:36:35 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sun, 9 Jul 2017 21:35:00 -1000 Message-Id: <20170710073501.5207-5-rth@twiddle.net> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170710073501.5207-1-rth@twiddle.net> References: <20170710073501.5207-1-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::242 Subject: [Qemu-devel] [PULL 4/5] util/cacheinfo: Fix warning generated by clang X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Pranith Kumar Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Pranith Kumar Clang generates the following warning on aarch64 host: CC util/cacheinfo.o /home/pranith/qemu/util/cacheinfo.c:121:48: warning: value size does not ma= tch register size specified by the constraint and modifier [-Wasm-operand-w= idths] asm volatile("mrs\t%0, ctr_el0" : "=3Dr"(ctr)); ^ /home/pranith/qemu/util/cacheinfo.c:121:28: note: use constraint modifier "= w" asm volatile("mrs\t%0, ctr_el0" : "=3Dr"(ctr)); ^~ %w0 Constraint modifier 'w' is not (yet?) accepted by gcc. Fix this by increasi= ng the ctr size. Tested-by: Emilio G. Cota Reviewed-by: Emilio G. Cota Signed-off-by: Pranith Kumar Message-Id: <20170630153946.11997-1-bobby.prani@gmail.com> Signed-off-by: Richard Henderson --- util/cacheinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/cacheinfo.c b/util/cacheinfo.c index f987522..6253049 100644 --- a/util/cacheinfo.c +++ b/util/cacheinfo.c @@ -112,7 +112,7 @@ static void sys_cache_info(int *isize, int *dsize) static void arch_cache_info(int *isize, int *dsize) { if (*isize =3D=3D 0 || *dsize =3D=3D 0) { - unsigned ctr; + unsigned long ctr; =20 /* The real cache geometry is in CCSIDR_EL1/CLIDR_EL1/CSSELR_EL1, but (at least under Linux) these are marked protected by the --=20 2.9.4