From patchwork Mon May 3 20:44:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 96558 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o43Kihq1002896 for ; Mon, 3 May 2010 20:44:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754955Ab0ECUof (ORCPT ); Mon, 3 May 2010 16:44:35 -0400 Received: from mail.gmx.net ([213.165.64.20]:52041 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756725Ab0ECUof (ORCPT ); Mon, 3 May 2010 16:44:35 -0400 Received: (qmail invoked by alias); 03 May 2010 20:44:30 -0000 Received: from p54AD1366.dip0.t-ipconnect.de (EHLO halden.box) [84.173.19.102] by mail.gmx.net (mp045) with SMTP; 03 May 2010 22:44:30 +0200 X-Authenticated: #1045983 X-Provags-ID: V01U2FsdGVkX182PZMv5eM2bYYNc/gXl3NwpePhdehEfuBXeBqKse FDEBO2NUYlZCyg Message-ID: <4BDF35A5.5010309@gmx.de> Date: Mon, 03 May 2010 22:44:21 +0200 From: Helge Deller User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc11 Lightning/1.0b2pre Thunderbird/3.0.4 MIME-Version: 1.0 To: Thibaut Paumard CC: debian-hppa@lists.debian.org, 559406@bugs.debian.org Subject: Re: SIGFPE trapping on HPPA References: <119aab440912140706o7aaa9bf6q1c53568e00ea6291@mail.gmail.com> <658D8AB1-4B32-4862-9938-503E3AC45FD9@free.fr> In-Reply-To: <658D8AB1-4B32-4862-9938-503E3AC45FD9@free.fr> X-Enigmail-Version: 1.0.1 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.46000000000000002 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 03 May 2010 20:44:43 +0000 (UTC) diff --git a/arch/parisc/math-emu/decode_exc.c b/arch/parisc/math-emu/decode_exc.c index 3ca1c61..27a7492 100644 --- a/arch/parisc/math-emu/decode_exc.c +++ b/arch/parisc/math-emu/decode_exc.c @@ -342,6 +342,7 @@ decode_fpu(unsigned int Fpu_register[], unsigned int trap_counts[]) return SIGNALCODE(SIGFPE, FPE_FLTINV); case DIVISIONBYZEROEXCEPTION: update_trap_counts(Fpu_register, aflags, bflags, trap_counts); + Clear_excp_register(exception_index); return SIGNALCODE(SIGFPE, FPE_FLTDIV); case INEXACTEXCEPTION: update_trap_counts(Fpu_register, aflags, bflags, trap_counts);