From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AH9wn-00081E-8g for qemu-devel@nongnu.org; Tue, 04 Nov 2003 17:46:49 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AH9wF-0007sb-Fr for qemu-devel@nongnu.org; Tue, 04 Nov 2003 17:46:46 -0500 Received: from [193.252.22.25] (helo=mwinf0602.wanadoo.fr) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AH9wE-0007rf-Iu for qemu-devel@nongnu.org; Tue, 04 Nov 2003 17:46:14 -0500 Received: from free.fr (ATuileries-112-1-4-237.w81-53.abo.wanadoo.fr [81.53.133.237]) by mwinf0602.wanadoo.fr (SMTP Server) with ESMTP id E565A5400197 for ; Tue, 4 Nov 2003 23:46:07 +0100 (CET) Message-ID: <3FA82C57.1070104@free.fr> Date: Tue, 04 Nov 2003 23:46:47 +0100 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] Interpreter for QEMU References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org It would be interesting to find a way to generate both the dynamic translator and the interepreter from the same description. I see that you are using ML to generate the interpreter. This is an original choice! It is true that a solution must be found to accelerate the DOS programs, especially when soft mmu is not in use. [When soft mmu is in use, it is possible to examine exactly each write access to see if the translated code is modified with a byte granularity]. Fabrice. malc wrote: > Hello, > > http://www.boblycat.org/~malc/1_iqemu.patch.gz conatains patch against CVS > version of QEMU that adds interpreted i386 target. Im hoping that someone > more apt than me can somehow breed it together with dynamic translator, so > that QEMU will be more viable for DOS emulation (interpreter can help some > with self-modifying code (so loved by DOS programmers) and/or highly > interleaved code/data, when host'spage faults take too much time) > > I was able to boot FreeDOS and run some applications with this purely > interpreted target, though apparently there are still some bugs lurking. > > To apply the patch: > $ cd cvs/version/of/qemu > $ zcat patch/location/1_iqemu.patch.gz | patch -p1 > $ ./configure --target-list="i386-softmmu i386-interp" > $ gmake > > Note that: interpreter is currently x86 specific and there is no FPU > support whatsoever. > > Sincerely, > malc >