From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dR3G5-0003sU-8k for qemu-devel@nongnu.org; Fri, 30 Jun 2017 17:15:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dR3G0-0006tM-2D for qemu-devel@nongnu.org; Fri, 30 Jun 2017 17:15:21 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:43779) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dR3Fz-0006sC-Rq for qemu-devel@nongnu.org; Fri, 30 Jun 2017 17:15:15 -0400 Date: Fri, 30 Jun 2017 17:15:14 -0400 From: "Emilio G. Cota" Message-ID: <20170630211514.GA13753@flamenco> References: <20170630153946.11997-1-bobby.prani@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170630153946.11997-1-bobby.prani@gmail.com> Subject: Re: [Qemu-devel] [PATCH] util/cacheinfo: Fix warning generated by clang List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pranith Kumar Cc: Richard Henderson , "open list:All patches CC here" On Fri, Jun 30, 2017 at 11:39:46 -0400, Pranith Kumar wrote: > 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 match register size specified by the constraint and modifier [-Wasm-operand-widths] > asm volatile("mrs\t%0, ctr_el0" : "=r"(ctr)); > ^ > /home/pranith/qemu/util/cacheinfo.c:121:28: note: use constraint modifier "w" > asm volatile("mrs\t%0, ctr_el0" : "=r"(ctr)); > ^~ > %w0 > > Constraint modifier 'w' is not (yet?) accepted by gcc. Fix this by increasing the ctr size. > > Signed-off-by: Pranith Kumar I can reproduce with clang 3.9.1. Tested-by: Emilio G. Cota Reviewed-by: Emilio G. Cota Thanks, Emilio