From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eykAN-0007SG-Tw for qemu-devel@nongnu.org; Wed, 21 Mar 2018 16:17:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eykAM-0003Wp-Sg for qemu-devel@nongnu.org; Wed, 21 Mar 2018 16:16:59 -0400 Date: Wed, 21 Mar 2018 16:16:51 -0400 From: "Emilio G. Cota" Message-ID: <20180321201651.GA32458@flamenco> References: <20180220210137.18018-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180220210137.18018-1-alex.bennee@linaro.org> Subject: Re: [Qemu-devel] [PATCH] fpu/softfloat: use hardware sqrt if we can (EXPERIMENT!) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?iso-8859-1?Q?Benn=E9e?= Cc: peter.maydell@linaro.org, richard.henderson@linaro.org, Peter Crosthwaite , Riku Voipio , qemu-devel@nongnu.org, Laurent Vivier , "open list:ARM" , Paolo Bonzini , Aurelien Jarno , Richard Henderson 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