[Qemu-devel] [PATCH v4 2/3] target-i386: x87 exception pointers using TCG.

2014-11-15 Thread Jaume Marti Farriol
This modifies the helpers for instructions fstenv/fnstenv, fsave, fxsave, fldenv, frstor and fxrstor, to store to memory and restore from memory the x87 exception pointers. Also it add logic that efficiently stores the values of the exception pointers, to be used in the instructions mentioned above

[Qemu-devel] [PATCH v4 3/3] target-i386: x87 exception pointers using TCG.

2014-11-15 Thread Jaume Marti Farriol
This adds tests for the x87 exception pointers. Signed-off-by: jaume.mar...@gmail.com --- tests/tcg/test-i386.c | 75 ++- 1 file changed, 69 insertions(+), 6 deletions(-) diff --git a/tests/tcg/test-i386.c b/tests/tcg/test-i386.c index b05572b..a18

[Qemu-devel] [PATCH v4 1/3] target-i386: x87 exception pointers using TCG.

2014-11-15 Thread Jaume Marti Farriol
This adds new fields in the CPUX86State struct to store the x87 exception pointers. Also it adds a new enum type that encodes the operand size and the processor operating mode (protected and real mode). The patch also adds a new option (tcg-exception-pointers) in the configure script to enable or

[Qemu-devel] [PATCH v4 0/3] target-i386: x87 exception pointers using TCG.

2014-11-15 Thread 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

[Qemu-devel] [PATCH v3 3/3] target-i386: x87 exception pointers using TCG.

2014-09-06 Thread Jaume Marti Farriol
This adds tests for the x87 exception pointers. Signed-off-by: jaume.mar...@gmail.com --- tests/tcg/test-i386.c | 71 ++- 1 file changed, 65 insertions(+), 6 deletions(-) diff --git a/tests/tcg/test-i386.c b/tests/tcg/test-i386.c index b05572b..bc9

[Qemu-devel] [PATCH v3 2/3] target-i386: x87 exception pointers using TCG.

2014-09-06 Thread Jaume Marti Farriol
This modifies the helpers for instructions fstenv/fnstenv, fsave, fxsave, fldenv, frstor and fxrstor, to store to memory and restore from memory the x87 exception pointers. Also it add logic that efficiently stores the values of the exception pointers, to be used in the instructions mentioned above

[Qemu-devel] [PATCH v3 1/3] target-i386: x87 exception pointers using TCG.

2014-09-06 Thread Jaume Marti Farriol
This adds new fields in the CPUX86State struct to store the x87 exception pointers. Also it adds a new enum type that encodes the operand size and the processor operating mode (protected and real mode). Signed-off-by: jaume.mar...@gmail.com --- target-i386/cpu.h | 23 +--

[Qemu-devel] [PATCH v3 0/3] target-i386: x87 exception pointers using TCG.

2014-09-06 Thread 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 inst

[Qemu-devel] [PATCH v2 6/8] target-i386: x87 exception pointers using TCG.

2014-08-28 Thread Jaume Marti Farriol
Hello, This patch contains the main changes. It contains modifcations to the target-i386/translate.c file. Those modifications are meant to generate TCG instructions to maintain the correct value for the variables fpop, fpip, fpdp, fpds and fpcs in the cpu state. Best regards, Jaume translat

[Qemu-devel] [PATCH v2 8/8] target-i386: x87 exception pointers using TCG.

2014-08-28 Thread Jaume Marti Farriol
Hello, This patch contains changes to the tests/tcg/test-i386.c file to test the storage of the x87 exception pointers by instructions fnstenv and fxsave. Best regards, Jaume test-i386.c | 66 1 file changed, 62 insertions(+), 4 de

[Qemu-devel] [PATCH v2 4/8] target-i386: x87 exception pointers using TCG.

2014-08-28 Thread Jaume Marti Farriol
Hello, This patch contains a required modification due to the change of the size from 16 bits to 32 bits of the fpop variable in the CPUX86State struct. Best regards, Jaume machine.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) signed-off: jaume.mar...@gmail.com diff --git a/targe

[Qemu-devel] [PATCH v2 3/8] target-i386: x87 exception pointers using TCG.

2014-08-28 Thread Jaume Marti Farriol
Hello, This patch includes changes in the helper parameters, for the instructions involved in saving to memory and restoring the x87 exception pointers. The changes are to include a new parameter to indicate if the processor is running in protected more. Best regards, Jaume helper.h | 12 ++

[Qemu-devel] [PATCH v2 1/8] target-i386: x87 exception pointers using TCG.

2014-08-28 Thread Jaume Marti Farriol
Hello, In this patch I just add new fields in the CPUX86State struct to store the exception pointers. Also I remove unnecessary parameters from cpu_x86_fsave and cpu_x86_frstor helpers. Best regards, Jaume cpu.h |9 + 1 file changed, 5 insertions(+), 4 deletions(-) signed-off: ja

[Qemu-devel] [PATCH v2 7/8] target-i386: x87 exception pointers using TCG.

2014-08-28 Thread Jaume Marti Farriol
Hello, This patch contains changes in target-i386/translate.c file to include a new parameter in some functions containing one byte of the instruction that together with the modrm value is used to identify the non control x87 instructions. This set of instructions are the ones that update the x

[Qemu-devel] [PATCH v2 5/8] target-i386: x87 exception pointers using TCG.

2014-08-28 Thread Jaume Marti Farriol
Hello, This patch just removes an unnecessary parameter. Best regards, Jaume signal.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) signed-off: jaume.mar...@gmail.com diff --git a/linux-user/signal.c b/linux-user/signal.c index 1141054..73f8f6b 100644 --- a/linux-user/signal.c +

[Qemu-devel] [PATCH v2 2/8] target-i386: x87 exception pointers using TCG.

2014-08-28 Thread Jaume Marti Farriol
Hello, This patch modifies the helpers for the fpu instructions involved in saving to memory and restoring the x87 exception pointers. Best regards, Jaume fpu_helper.c | 218 --- 1 file changed, 166 insertions(+), 52 deletions(-) signed

[Qemu-devel] [PATCH v2 0/8] target-i386: x87 exception pointers using TCG.

2014-08-28 Thread Jaume Marti Farriol
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 th