linux-mips
[Top] [All Lists]

Re: FCSR Management

To: "Kevin D. Kissell" <kevink@mips.com>
Subject: Re: FCSR Management
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Tue, 24 Sep 2002 13:42:47 +0200 (MET DST)
Cc: linux-mips@linux-mips.org
In-reply-to: <008801c2639f$385b1b80$10eca8c0@grendel>
Organization: Technical University of Gdansk
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
On Tue, 24 Sep 2002, Kevin D. Kissell wrote:

> dump core, so the user never executes again.  But *if*
> the user has registered a handler for SIGFPE, and one
> of the IEEE exceptions occurs, I don't see where the
> associated Cause bit is being cleared, and I would think
> that the consequence would be that the process would
> get into an endless loop of trapping, posting the signal,
> restoring the FCSR from the context with the bits set,
> and trapping again, whether or not the PC is modified
> to avoid re-executing the faulting instruction.

 Obviously user code is responsible to clear the bit it acted upon in the
saved context. 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


<Prev in Thread] Current Thread [Next in Thread>