From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DvjO5-0006DB-BD for qemu-devel@nongnu.org; Thu, 21 Jul 2005 18:19:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DvjNm-000638-2b for qemu-devel@nongnu.org; Thu, 21 Jul 2005 18:19:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DvjNl-00061X-IY for qemu-devel@nongnu.org; Thu, 21 Jul 2005 18:19:10 -0400 Received: from [195.250.128.73] (helo=smtp1.vol.cz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DvjOk-0001zK-Av for qemu-devel@nongnu.org; Thu, 21 Jul 2005 18:20:10 -0400 Received: from [10.0.0.2] (prg-v-6-220.static.adsl.vol.cz [62.177.70.220]) by smtp1.vol.cz (Postfix) with ESMTP id D6D7F4006D for ; Fri, 22 Jul 2005 00:10:06 +0200 (CEST) Message-ID: <42E01D41.8020108@reactos.com> Date: Fri, 22 Jul 2005 00:10:09 +0200 From: Filip Navara MIME-Version: 1.0 Subject: Re: [Qemu-devel] PowerPC64 and more References: <1121944537.9483.74.camel@rapid> In-Reply-To: <1121944537.9483.74.camel@rapid> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 J. Mayer wrote: >Here's a long awaited patch (hum, Fabrice ? ;-) ). >It is really invasive in the target-ppc subdirectory. > > [snip] wow, you repeated my and Fabrice's mistake once more ... think about the code below more :) note: when you'll be done thinking or run out of ideas see my x86-64 patches that i sent to ML this morning. - Filip Index: exec.c =================================================================== RCS file: /cvsroot/qemu/qemu/exec.c,v retrieving revision 1.60 diff -u -d -w -B -b -d -p -r1.60 exec.c --- exec.c 24 Apr 2005 18:02:38 -0000 1.60 +++ exec.c 20 Jul 2005 23:00:26 -0000 @@ -257,6 +257,10 @@ static inline VirtPageDesc *virt_page_fi { VirtPageDesc *p; + /* XXX: should not truncate for 64 bit addresses */ +#if TARGET_LONG_BITS > 32 + index &= (L1_SIZE - 1); +#endif p = l1_virt_map[index >> L2_BITS]; if (!p) return 0;