On Tue, Feb 20, 2018 at 21:01:37 +0000, Alex Bennée wrote: > This is an attempt to save some of the cost of sqrt by using the > inbuilt support of the host hardware. The idea is assuming we start > with a valid input we can use the hardware. If any tininess issues > occur this will trip and FPU exception where: > > - we turn off cpu->use_host_fpu > - mask the FPU exceptions > - return to what we were doing
Please see this thread for an alternative approach: [Qemu-devel] [PATCH v1 00/14] fp-test + hostfloat https://lists.gnu.org/archive/html/qemu-devel/2018-03/msg05908.html Emilio