Received: from eggs.gnu.org ([2001:4830:134:3::10]:38833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyQDz-0006yW-To for qemu-devel@nongnu.org; Fri, 29 May 2015 15:45:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyQDw-0006QH-M5 for qemu-devel@nongnu.org; Fri, 29 May 2015 15:45:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyQDw-0006QC-DZ for qemu-devel@nongnu.org; Fri, 29 May 2015 15:45:44 -0400 Date: Fri, 29 May 2015 16:45:32 -0300 From: Eduardo Habkost Message-ID: <20150529194532.GB28770@thinpad.lan.raisama.net> References: <1432922664-15129-1-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PULL 0/5] X86 patch queue, 2015-05-29 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , QEMU Developers , Andreas =?iso-8859-1?Q?F=E4rber?= , Richard Henderson On Fri, May 29, 2015 at 07:57:16PM +0100, Peter Maydell wrote: > On 29 May 2015 at 19:04, Eduardo Habkost wrote: > > The following changes since commit 2cc3bdbe2d3908f7a813d1c2d774cc2bf07746cd: > > > > Merge remote-tracking branch 'remotes/armbru/tags/pull-block-2015-05-29' into staging (2015-05-29 15:32:15 +0100) > > > > are available in the git repository at: > > > > git://github.com/ehabkost/qemu.git tags/x86-pull-request > > > > for you to fetch changes up to d032544e08ed07c66afd45ca8a8420ca202fab75: > > > > arch_init: Drop target-x86_64.conf (2015-05-29 14:46:32 -0300) > > > > ---------------------------------------------------------------- > > X86 patch queue, 2015-05-29 > > Hi. I'm afraid this patchset provokes a lot of warnings from > clang's undefined-behaviour sanitizer when we run make check: > > /home/petmay01/linaro/qemu-for-merges/hw/intc/apic_common.c:314:55: > runtime error: left shift of 1048575 by 12 places cannot be > represented in type 'int' > > This is because this: > target-i386/cpu.h:#define MSR_IA32_APICBASE_BASE (0xfffff<<12) > > is shifting a 1 into the sign bit of a signed integer. You need > to write 0xfffffU to force an unsigned shift here. > > (The undef sanitizer is one of those things I don't really > expect submaintainers to run but which I have enabled for > my build process. At the moment we're almost clean for a > make check run, so I'm keen to avoid introducing new warnings.) I will submit a fix and send a new pull request later. Thanks! (I will also add a new build configuration to my setup using clang and -fsanitize=undefined) -- Eduardo