Re: [Qemu-devel] [PATCH v4 5/7] target-m68k: use floatx80 internally

2017-06-19 Thread Richard Henderson
On 06/19/2017 02:42 PM, Laurent Vivier wrote: Le 19/06/2017 à 23:03, Laurent Vivier a écrit : Le 19/06/2017 à 22:53, Richard Henderson a écrit : It would also make me happier if we were to adjust the definition of fl0atx80 to more closely match m68k and those missing zeros. Shouldn't real har

Re: [Qemu-devel] [PATCH v4 5/7] target-m68k: use floatx80 internally

2017-06-19 Thread Laurent Vivier
Le 19/06/2017 à 23:03, Laurent Vivier a écrit : > Le 19/06/2017 à 22:53, Richard Henderson a écrit : >> >> It would also make me happier if we were to adjust the definition of >> fl0atx80 to more closely match m68k and those missing zeros. Shouldn't >> real hardware move instructions propagate tho

Re: [Qemu-devel] [PATCH v4 5/7] target-m68k: use floatx80 internally

2017-06-19 Thread Laurent Vivier
Le 19/06/2017 à 22:53, Richard Henderson a écrit : > On 06/11/2017 04:16 PM, Laurent Vivier wrote: >> +static void gen_load_fp(DisasContext *s, int opsize, TCGv addr, >> TCGv_ptr fp) >> +{ >> +TCGv tmp; >> +TCGv_i64 t64; >> +int index = IS_USER(s); >> + >> +t64 = tcg_temp_new_i64();

Re: [Qemu-devel] [PATCH v4 5/7] target-m68k: use floatx80 internally

2017-06-19 Thread Richard Henderson
On 06/11/2017 04:16 PM, Laurent Vivier wrote: +static void gen_load_fp(DisasContext *s, int opsize, TCGv addr, TCGv_ptr fp) +{ +TCGv tmp; +TCGv_i64 t64; +int index = IS_USER(s); + +t64 = tcg_temp_new_i64(); +tmp = tcg_temp_new(); +switch (opsize) { +case OS_BYTE: +

Re: [Qemu-devel] [PATCH v4 5/7] target-m68k: use floatx80 internally

2017-06-12 Thread Thomas Huth
On 12.06.2017 01:16, Laurent Vivier wrote: > Coldfire uses float64, but 680x0 use floatx80. > This patch introduces the use of floatx80 internally > and enables 680x0 80bits FPU. > > Signed-off-by: Laurent Vivier > --- > target/m68k/cpu.c| 9 +- > target/m68k/cpu.h| 6 +- > t

[Qemu-devel] [PATCH v4 5/7] target-m68k: use floatx80 internally

2017-06-11 Thread Laurent Vivier
Coldfire uses float64, but 680x0 use floatx80. This patch introduces the use of floatx80 internally and enables 680x0 80bits FPU. Signed-off-by: Laurent Vivier --- target/m68k/cpu.c| 9 +- target/m68k/cpu.h| 6 +- target/m68k/fpu_helper.c | 85 +++ target/m68k/helper.c