From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQOTW-0007X8-HD for qemu-devel@nongnu.org; Sat, 06 Sep 2014 18:29:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQOTN-0005lY-HC for qemu-devel@nongnu.org; Sat, 06 Sep 2014 18:28:54 -0400 Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:46280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQOTN-0005kZ-8A for qemu-devel@nongnu.org; Sat, 06 Sep 2014 18:28:45 -0400 Received: by mail-wg0-f44.google.com with SMTP id k14so400921wgh.3 for ; Sat, 06 Sep 2014 15:28:43 -0700 (PDT) From: Jaume Marti Farriol Date: Sun, 7 Sep 2014 00:31:57 +0200 Message-Id: <1410042720-17750-1-git-send-email-jaume.martif@gmail.com> Subject: [Qemu-devel] [PATCH v3 0/3] target-i386: x87 exception pointers using TCG. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jaume Marti Farriol Hello, I submit a patch to fix bugs 661696 and 1248376. This is the third 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. Best regards, Jaume linux-user/signal.c | 4 +- target-i386/cpu.h | 27 ++- target-i386/fpu_helper.c | 223 ++++++++++++++++++------ target-i386/machine.c | 2 +- target-i386/translate.c | 436 +++++++++++++++++++++++++++++++++-------------- tests/tcg/test-i386.c | 71 +++++++- 6 files changed, 571 insertions(+), 192 deletions(-) -- 2.1.0