Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CeU8K-0007vf-KQ for qemu-devel@nongnu.org; Wed, 15 Dec 2004 03:03:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CeU8I-0007uc-PM for qemu-devel@nongnu.org; Wed, 15 Dec 2004 03:03:39 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CeU8I-0007uZ-Ke for qemu-devel@nongnu.org; Wed, 15 Dec 2004 03:03:38 -0500 Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CeTy4-0005gu-3W for qemu-devel@nongnu.org; Wed, 15 Dec 2004 02:53:04 -0500 Date: Wed, 15 Dec 2004 08:50:16 +0100 From: Jens Arm Subject: Re: [Qemu-devel] softmmu thoughts Message-Id: <20041215085016.311c9617.Jens.Arm@gmx.de> In-Reply-To: References: <1098217677.26133.26.camel@kubu.opensource.se> <4175B3CA.9050209@sti.net> <41765D06.4020006@bellard.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: Piotras , qemu-devel@nongnu.org > I'm attaching a new patch based on your suggestions. On my machine > nbench gives: > memory index: 37% up > integer index: 36% up > fp index: 4% up > > The patch is divided in three files to simplify review. Part 1 contains > mostly rearrangement existing code necessary for the patch. Part 2 > adds the new mmu mode. Part 3 contains heuristic to optimize > performance of iomem and self modifying code. > > To test the patch create a build directory and run: > > tar -zxf _PATH_TO_qemu-0.6.1.tar.gz > > tar -zxf _PATH_TO_linux-test-0.5.1.tar.gz > > cd qemu-0.6.1 > > ./configure --target-list=i386-softmmu > > gunzip < _PATH_TO_mmu-part1.patch.gz | patch -p1 > > gunzip < _PATH_TO_mmu-part2.patch.gz | patch -p1 > > gunzip < _PATH_TO_mmu-part3.patch.gz | patch -p1 > > make > > ./i386-softmmu/qemu -m 64 -L pc-bios -hda ../linux-test/linux.img One hunk is failing, if I try to patch newest CVS: [tux@tux qemu]$ patch -p1 < ../mmu-part2.patch patching file Makefile.target patching file configure patching file cpu-exec.c patching file exec.c patching file mmu_map.c patching file mmu_map.h patching file mmu_map_templ.h patching file osdep.c patching file target-i386/cpu.h patching file target-i386/exec.h patching file target-i386/helper2.c patching file target-i386/op.c patching file target-i386/ops_template.h patching file target-i386/ops_template_mem.h patching file target-i386/translate.c Hunk #12 succeeded at 4408 (offset 12 lines). Hunk #13 succeeded at 4531 (offset 12 lines). Hunk #14 succeeded at 4574 (offset 12 lines). Hunk #15 succeeded at 4660 (offset 12 lines). patching file vl.c Hunk #1 succeeded at 1733 (offset 41 lines). Hunk #2 FAILED at 2665. Hunk #3 succeeded at 2739 (offset 50 lines). Hunk #4 succeeded at 2818 (offset 50 lines). Hunk #5 succeeded at 3170 with fuzz 2 (offset 74 lines). Hunk #6 succeeded at 3247 (offset 74 lines). Hunk #7 succeeded at 3281 (offset 74 lines). Hunk #8 succeeded at 3399 (offset 76 lines). 1 out of 8 hunks FAILED -- saving rejects to file vl.c.rej Jens