qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/3] target-i386: x87 exception pointers using TCG.
@ 2014-11-15 11:30 Jaume Marti Farriol
  2014-11-15 11:30 ` [Qemu-devel] [PATCH v4 1/3] " Jaume Marti Farriol
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jaume Marti Farriol @ 2014-11-15 11:30 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jaume Marti Farriol

I submit a patch to fix bugs 661696 and 1248376. This is the fourth version of this patch.
As mentioned in a previous email, the patch implements, for TCG, the specifications provided in Intel and AMD programmer's manuals regarding the x87 exception pointers. That is, when executing instructions fstenv/fnstenv, fsave and fxsave the values for the instruction pointer, data pointer and opcode of the last non-control x87 instruction executed, are correctly saved to the specified memory address. When executing instructions fldenv, frstor and fxrstor the values that are going to be considered the instruction pointer, data pointer and opcode of the last non-control x87 instruction are obtained from the specified memory address.
I have added an option in the configure script to enable and disable this development (option tcg-exception-pointers). After testing, I found no performance change between having this option activated and having it disabled.

Best regards,
Jaume

 configure                |  10 ++
 linux-user/signal.c      |   4 +-
 target-i386/cpu.h        |  29 ++-
 target-i386/fpu_helper.c | 238 ++++++++++++++++++++-----
 target-i386/machine.c    |  11 +-
 target-i386/translate.c  | 455 ++++++++++++++++++++++++++++++++++-------------
 tests/tcg/test-i386.c    |  75 +++++++-
 7 files changed, 645 insertions(+), 177 deletions(-)

-- 
2.1.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-19 19:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-15 11:30 [Qemu-devel] [PATCH v4 0/3] target-i386: x87 exception pointers using TCG Jaume Marti Farriol
2014-11-15 11:30 ` [Qemu-devel] [PATCH v4 1/3] " Jaume Marti Farriol
2014-11-15 11:30 ` [Qemu-devel] [PATCH v4 2/3] " Jaume Marti Farriol
2014-11-15 11:30 ` [Qemu-devel] [PATCH v4 3/3] " Jaume Marti Farriol
2014-11-19 18:59   ` Jaume Martí

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).