Re: [Qemu-devel] [RFC PATCH for 2.11 12/23] target/arm/translate-a64.c: add FP16 FAGCT to AdvSIMD 3 Same

2017-07-28 Thread Richard Henderson
On 07/28/2017 06:00 AM, Alex Bennée wrote: uint_fast8_t *old_fpst = softfloat_exceptionFlags; softfloat_exceptionFlags = (uint_fast8t *) fpstp; Better, but not best. We still need to collect all of the different variables that are currently members of float_status, of which this is

Re: [Qemu-devel] [RFC PATCH for 2.11 12/23] target/arm/translate-a64.c: add FP16 FAGCT to AdvSIMD 3 Same

2017-07-28 Thread Alex Bennée
Richard Henderson writes: > On 07/20/2017 05:04 AM, Alex Bennée wrote: >> +static softfloat_flags softfloat_mapping_table[] = { >> +{ float_flag_inexact , softfloat_flag_inexact }, >> +{ float_flag_underflow, softfloat_flag_underflow }, >> +{ float_flag_overflow ,

Re: [Qemu-devel] [RFC PATCH for 2.11 12/23] target/arm/translate-a64.c: add FP16 FAGCT to AdvSIMD 3 Same

2017-07-21 Thread Aurelien Jarno
On 2017-07-21 14:58, Peter Maydell wrote: > On 21 July 2017 at 14:50, Alex Bennée wrote: > > Aurelien Jarno writes: > >> As said in another email, some architectures actually use more than one > >> float_status. We therefore need to implement a

Re: [Qemu-devel] [RFC PATCH for 2.11 12/23] target/arm/translate-a64.c: add FP16 FAGCT to AdvSIMD 3 Same

2017-07-21 Thread Peter Maydell
On 21 July 2017 at 14:50, Alex Bennée wrote: > Aurelien Jarno writes: >> As said in another email, some architectures actually use more than one >> float_status. We therefore need to implement a solution like the one >> proposed by Richard. > > Ahh

Re: [Qemu-devel] [RFC PATCH for 2.11 12/23] target/arm/translate-a64.c: add FP16 FAGCT to AdvSIMD 3 Same

2017-07-21 Thread Alex Bennée
Aurelien Jarno writes: > On 2017-07-21 10:56, Alex Bennée wrote: >> >> Richard Henderson writes: >> >> > On 07/20/2017 05:04 AM, Alex Bennée wrote: >> >> +static softfloat_flags softfloat_mapping_table[] = { >> >> +{ float_flag_inexact ,

Re: [Qemu-devel] [RFC PATCH for 2.11 12/23] target/arm/translate-a64.c: add FP16 FAGCT to AdvSIMD 3 Same

2017-07-21 Thread Aurelien Jarno
On 2017-07-21 10:56, Alex Bennée wrote: > > Richard Henderson writes: > > > On 07/20/2017 05:04 AM, Alex Bennée wrote: > >> +static softfloat_flags softfloat_mapping_table[] = { > >> +{ float_flag_inexact , softfloat_flag_inexact }, > >> +{ float_flag_underflow,

Re: [Qemu-devel] [RFC PATCH for 2.11 12/23] target/arm/translate-a64.c: add FP16 FAGCT to AdvSIMD 3 Same

2017-07-21 Thread Alex Bennée
Richard Henderson writes: > On 07/20/2017 05:04 AM, Alex Bennée wrote: >> +static softfloat_flags softfloat_mapping_table[] = { >> +{ float_flag_inexact , softfloat_flag_inexact }, >> +{ float_flag_underflow, softfloat_flag_underflow }, >> +{ float_flag_overflow ,

Re: [Qemu-devel] [RFC PATCH for 2.11 12/23] target/arm/translate-a64.c: add FP16 FAGCT to AdvSIMD 3 Same

2017-07-20 Thread Richard Henderson
On 07/20/2017 05:04 AM, Alex Bennée wrote: +static softfloat_flags softfloat_mapping_table[] = { +{ float_flag_inexact , softfloat_flag_inexact }, +{ float_flag_underflow, softfloat_flag_underflow }, +{ float_flag_overflow , softfloat_flag_overflow }, +{ float_flag_invalid ,

[Qemu-devel] [RFC PATCH for 2.11 12/23] target/arm/translate-a64.c: add FP16 FAGCT to AdvSIMD 3 Same

2017-07-20 Thread Alex Bennée
This adds the first of the softfloat3c helpers for handling FP16 operations. To interwork with the existing SoftFloat2a code we need to copy the exceptions conditions across before each operation and restore them afterwards. Signed-off-by: Alex Bennée ---