Received: from eggs.gnu.org ([2001:4830:134:3::10]:48658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4PIX-00083O-V7 for qemu-devel@nongnu.org; Tue, 08 Jul 2014 02:54:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4PIW-0000Xe-Vo for qemu-devel@nongnu.org; Tue, 08 Jul 2014 02:54:41 -0400 Received: from zeniv.linux.org.uk ([2002:c35c:fd02::1]:48867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4PIW-0000XD-Nw for qemu-devel@nongnu.org; Tue, 08 Jul 2014 02:54:40 -0400 Date: Tue, 8 Jul 2014 07:54:36 +0100 From: Al Viro Message-ID: <20140708065436.GB18016@ZenIV.linux.org.uk> References: <53B62DCD.6030201@twiddle.net> <20140704072937.GU18016@ZenIV.linux.org.uk> <20140705014055.GV18016@ZenIV.linux.org.uk> <20140705210951.GX18016@ZenIV.linux.org.uk> <20140705225513.GY18016@ZenIV.linux.org.uk> <53BAAAAE.2060009@twiddle.net> <20140707150629.GZ18016@ZenIV.linux.org.uk> <53BAC8CC.9070301@twiddle.net> <20140708042037.GA18016@ZenIV.linux.org.uk> <53BB899C.30901@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53BB899C.30901@twiddle.net> Sender: Al Viro Subject: Re: [Qemu-devel] [RFC] alpha qemu arithmetic exceptions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Peter Maydell , QEMU Developers On Mon, Jul 07, 2014 at 11:03:08PM -0700, Richard Henderson wrote: > On 07/07/2014 09:20 PM, Al Viro wrote: > > and I'm reasonably sure that this is what they did internally. You are > > proposing to do 4 cases in all their messy glory in qemu itself... > > Yes. Primarily because we *have* to do so for the linux-user case. > > > And that's not even going into generating the right si_code for that SIGFPE. > > What produces those TARGET_GEN_FLTINE and friends? > > linux-user/main.c, cpu_loop. That's where we consume it; where is it produced? Sure, explicit gentrap in alpha code will lead there, with whatever we have in $16 deciding what'll go into si_code, but where does that happen on fp exception codepaths? IOW, what sets si_code on those?