From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN6V2-0008IE-2D for qemu-devel@nongnu.org; Thu, 28 Aug 2014 16:41:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XN6Ut-000541-0m for qemu-devel@nongnu.org; Thu, 28 Aug 2014 16:40:52 -0400 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:52308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN6Us-00053e-Ja for qemu-devel@nongnu.org; Thu, 28 Aug 2014 16:40:42 -0400 Received: by mail-we0-f179.google.com with SMTP id t60so1282239wes.24 for ; Thu, 28 Aug 2014 13:40:41 -0700 (PDT) Received: from workstation.home (ANice-552-1-182-94.w86-203.abo.wanadoo.fr. [86.203.57.94]) by mx.google.com with ESMTPSA id ot5sm12683015wjc.42.2014.08.28.13.40.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Aug 2014 13:40:40 -0700 (PDT) From: Jaume Marti Farriol Date: Thu, 28 Aug 2014 22:44:32 +0200 Message-Id: <1409258680-15555-1-git-send-email-jaume.martif@gmail.com> Subject: [Qemu-devel] [PATCH v2 0/8] target-i386: x87 exception pointers using TCG. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello, I submit a patch to fix bugs 661696 and 1248376. This is the second version of this patch, this version requires less TCG operations to execute. 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 divided this patch in 8 parts. Best regards, Jaume linux-user/signal.c | 4 target-i386/cpu.h | 9 - target-i386/fpu_helper.c | 218 +++++++++++++++++++++++++++++++---------- target-i386/helper.h | 12 +- target-i386/machine.c | 2 target-i386/translate.c | 202 ++++++++++++++++++++++++++++++++++++-- tests/tcg/test-i386.c | 66 +++++++++++- target-i386/translate.c | 238 +++++++++++++++++++++++---------------------- 8 files changed, 558 insertions(+), 193 deletions(-)