From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CUXzt-0006Zb-GD for qemu-devel@nongnu.org; Wed, 17 Nov 2004 17:09:53 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CUXzs-0006ZG-TC for qemu-devel@nongnu.org; Wed, 17 Nov 2004 17:09:52 -0500 Received: from [129.104.30.34] (helo=mx1.polytechnique.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CUXqf-0007oi-BJ for qemu-devel@nongnu.org; Wed, 17 Nov 2004 17:00:21 -0500 Received: from localhost (localhost [127.0.0.1]) by djali.polytechnique.org (Postfix) with ESMTP id 1B86F33185 for ; Wed, 17 Nov 2004 23:00:19 +0100 (CET) Received: from djali.polytechnique.org ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01673-03 for ; Wed, 17 Nov 2004 23:00:19 +0100 (CET) Received: from bellard.org (unknown [84.99.204.248]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTP id D12C03319E for ; Wed, 17 Nov 2004 23:00:18 +0100 (CET) Message-ID: <419BC9FD.5000901@bellard.org> Date: Wed, 17 Nov 2004 23:00:29 +0100 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] FreeSBIE-20040919, ffreep insn References: <20041117214607.A21330@saturn.kn-bremen.de> In-Reply-To: <20041117214607.A21330@saturn.kn-bremen.de> Content-Type: text/plain; charset=us-ascii; 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 I don't think ffreep is used by the software you tried. It must be a bug which yields a jump in a data section. ffreep is not documented and it does not work on every CPU (I get an invalid instruction exception on P4), so I propose not to implement it. Fabrice. Juergen Lock wrote: > Hi! I just tried FreeSBIE-20040919, > http://torrent.freesbie.org/FreeSBIE-20040919.iso.torrent > and got an illegal instruction when starting X. I gdb'd the core > and found its the ffreep insn that it failed on: > http://webster.cs.ucr.edu/AsmTools/NASM/Doc/NASMDOCA.HTM > says its undocumented (A.55, does an ffree and then pops st0), > so thats probably the reason why its missing. So i added it: > > Index: qemu/target-i386/translate.c > @@ -3187,6 +3187,10 @@ > goto illegal_op; > } > break; > + case 0x38: /* ffreep sti */ > + gen_op_ffree_STN(opreg); > + gen_op_fpop(); > + break; > case 0x3c: /* df/4 */ > switch(rm) { > case 0: > > and now X gets a bit further but then gets another illegal instruction, > this time with a signal handler setup so i dont know the failed eip. > (I guess i'd have to patch X to get it...) But, later i started an xterm > (displaying on the host), and that came up but then also died of an > illegal instruction, this time it was xorps %xmm0,%xmm0. So i guess > this FreeSBIE's X is built with -march=pentium3 or something. > (What are the chances of adding sse to qemu? I guess slim :) > > Anyway, I guess there's nothing wrong with adding ffreep... > Juergen > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel > > >