Re: [PATCH] Set the correct env->fpip for x86 float instructions [cleaned]

2021-04-27 Thread Ziqiao Kong
Thanks for your review! I did a full re-read of the Intel Manual about x87 programming just now and would send another patch to handle FCS:FIP and FDS:FDP. Ziqiao On Wed, Apr 28, 2021 at 1:49 AM Richard Henderson wrote: > > On 4/16/21 8:34 AM, Ziqiao Kong wrote: > > +++ b/target/i386/tcg/transla

Re: [PATCH] Set the correct env->fpip for x86 float instructions [cleaned]

2021-04-27 Thread Richard Henderson
On 4/16/21 8:34 AM, Ziqiao Kong wrote: +++ b/target/i386/tcg/translate.c @@ -6337,7 +6337,10 @@ static target_ulong disas_insn(DisasContext *s, CPUState *cpu) goto unknown_op; } } +tcg_gen_movi_tl(s->tmp0, pc_start - s->cs_base); +tcg_gen

Re: [PATCH] Set the correct env->fpip for x86 float instructions [cleaned]

2021-04-22 Thread Ziqiao Kong
Ping for this patch. Patchew: https://patchew.org/QEMU/20210416153430.92187-1-ziqiaok...@gmail.com/ Ziqiao. On Fri, Apr 16, 2021 at 11:38 PM Ziqiao Kong wrote: > > Hello, everyone! > > Sorry that I forgot the Signed-off-by line and put the duplicate link just > now. Please ignore my previous em

[PATCH] Set the correct env->fpip for x86 float instructions [cleaned]

2021-04-16 Thread Ziqiao Kong
Hello, everyone! Sorry that I forgot the Signed-off-by line and put the duplicate link just now. Please ignore my previous emails. This patch follows https://lists.gnu.org/archive/html/qemu-devel/2010-11/msg02497.html and https://lists.nongnu.org/archive/html/qemu-devel/2021-04/msg00307.html