All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabrice Bellard <fabrice@bellard.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] FreeSBIE-20040919, ffreep insn
Date: Wed, 17 Nov 2004 23:00:29 +0100	[thread overview]
Message-ID: <419BC9FD.5000901@bellard.org> (raw)
In-Reply-To: <20041117214607.A21330@saturn.kn-bremen.de>

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
> 
> 
> 

  reply	other threads:[~2004-11-17 22:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-17 20:46 [Qemu-devel] FreeSBIE-20040919, ffreep insn Juergen Lock
2004-11-17 22:00 ` Fabrice Bellard [this message]
2004-11-17 23:42   ` Juergen Lock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=419BC9FD.5000901@bellard.org \
    --to=fabrice@bellard.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.