From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KjwhF-0003P4-UX for qemu-devel@nongnu.org; Sun, 28 Sep 2008 09:52:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KjwhE-0003Oj-Bi for qemu-devel@nongnu.org; Sun, 28 Sep 2008 09:52:25 -0400 Received: from [199.232.76.173] (port=54005 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjwhE-0003Oc-8M for qemu-devel@nongnu.org; Sun, 28 Sep 2008 09:52:24 -0400 Received: from rv-out-0708.google.com ([209.85.198.240]:29239) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KjwhD-0004Xv-RH for qemu-devel@nongnu.org; Sun, 28 Sep 2008 09:52:24 -0400 Received: by rv-out-0708.google.com with SMTP id f25so1484152rvb.22 for ; Sun, 28 Sep 2008 06:52:22 -0700 (PDT) Message-ID: Date: Sun, 28 Sep 2008 16:52:22 +0300 From: "Blue Swirl" Subject: Re: [Qemu-devel] constant truncation warning in hw/pc.c for 32bit targets In-Reply-To: <20080928144429.5781982d@holly> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080928144429.5781982d@holly> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 9/28/08, Jindrich Makovicka wrote: > Hi, > > for 32bit targets, the 0x100000000ULL start address of above-4G memory > is truncated to zero. IMO the code for above-4G allocation could be > #ifdef'ed only for 64 bit targets, as for 32bit it 1) miscompiles and > 2) won't be used anyway: There are i386 systems with more than 4G of memory, so your patch is incorrect. Now, if the code miscompiles there could be a problem somewhere else.