From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dS8hx-0004es-3t for qemu-devel@nongnu.org; Mon, 03 Jul 2017 17:16:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dS8hs-0002u5-8P for qemu-devel@nongnu.org; Mon, 03 Jul 2017 17:16:37 -0400 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:34682) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dS8hs-0002tX-3g for qemu-devel@nongnu.org; Mon, 03 Jul 2017 17:16:32 -0400 Received: by mail-qk0-x242.google.com with SMTP id 91so25464654qkq.1 for ; Mon, 03 Jul 2017 14:16:32 -0700 (PDT) Sender: Richard Henderson References: <20170630153946.11997-1-bobby.prani@gmail.com> <63517903-f0e7-59db-47e2-e12f595092cf@twiddle.net> <49f0081f-3471-fcf0-f5b7-d7d081342135@twiddle.net> From: Richard Henderson Message-ID: <623f712b-96ee-1cde-5bae-9352a1e7bf4b@twiddle.net> Date: Mon, 3 Jul 2017 14:16:27 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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: Peter Maydell Cc: Pranith Kumar , "Emilio G. Cota" , "open list:All patches CC here" On 07/01/2017 03:44 PM, Peter Maydell wrote: > On 1 July 2017 at 23:35, Richard Henderson wrote: >> Perhaps it ought to be telling me to use %x to force Xn in spite of the >> type? > > You always get Xn anyway, regardless of the type. > > For us, I think the right thing to do is make 'ctr' be a uint64_t, > because we're reading a 64 bit sysreg and silently truncating it > as a side effect of the asm constraints is a bit obscure. Fair enough. Applied as-is to tcg-next. r~