From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkeL3-0003qS-Fi for qemu-devel@nongnu.org; Thu, 25 Feb 2010 09:05:13 -0500 Received: from [199.232.76.173] (port=49195 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkeL3-0003qI-4a for qemu-devel@nongnu.org; Thu, 25 Feb 2010 09:05:13 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NkeL0-0002or-1x for qemu-devel@nongnu.org; Thu, 25 Feb 2010 09:05:12 -0500 Received: from lo.gmane.org ([80.91.229.12]:49666) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NkeKz-0002oh-Mc for qemu-devel@nongnu.org; Thu, 25 Feb 2010 09:05:09 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NkeKt-0006gR-9E for qemu-devel@nongnu.org; Thu, 25 Feb 2010 15:05:03 +0100 Received: from 93-34-208-53.ip51.fastwebnet.it ([93.34.208.53]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Feb 2010 15:05:03 +0100 Received: from pbonzini by 93-34-208-53.ip51.fastwebnet.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Feb 2010 15:05:03 +0100 From: Paolo Bonzini Date: Thu, 25 Feb 2010 15:02:45 +0100 Message-ID: References: <1265290313-31738-1-git-send-email-pbonzini@redhat.com> <1265290313-31738-3-git-send-email-pbonzini@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <1265290313-31738-3-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PING 0.12] [PATCH v2 RESEND 2/5] fix undefined shifts by >32 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 02/04/2010 02:31 PM, Paolo Bonzini wrote: > This one is for 0.12 too. > > Signed-off-by: Paolo Bonzini > --- > vl.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/vl.c b/vl.c > index 39833fc..ea9a95c 100644 > --- a/vl.c > +++ b/vl.c > @@ -2380,9 +2380,9 @@ static void numa_add(const char *optarg) > fprintf(stderr, > "only 63 CPUs in NUMA mode supported.\n"); > } > - value = (1<< (endvalue + 1)) - (1<< value); > + value = (2ULL<< endvalue) - (1ULL<< value); > } else { > - value = 1<< value; > + value = 1ULL<< value; > } > } > node_cpumask[nodenr] = value; Ping for 0.12 (commit 0dfbd51). Paolo