linux-mips
[Top] [All Lists]

Re: [MIPS] Check FCSR for pending interrupts before restoring from a con

To: ralf@linux-mips.org
Subject: Re: [MIPS] Check FCSR for pending interrupts before restoring from a context.
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Thu, 08 Feb 2007 01:22:16 +0900 (JST)
Cc: linux-mips@linux-mips.org
In-reply-to: <20070207110929.GA17660@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <S20038814AbXBEQMb/20070205161231Z+24864@ftp.linux-mips.org> <20070207.133809.71085888.nemoto@toshiba-tops.co.jp> <20070207110929.GA17660@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
On Wed, 7 Feb 2007 11:09:29 +0000, Ralf Baechle <ralf@linux-mips.org> wrote:
> > r2300_fpu.S and r6000_fpu.S should be fixed too?
> > 
> > Also, fpu_emulator_restore_context() should check FCSR too? (it should
> > not harm FPU-less CPU, but on MIPS_MT, FCSR value restored by fpu
> > emulator might be used for real FPU, right?)
> 
> Correct in all points.

If the format of FCSR was common to all CPU (I hope so), we can do
check it in caller of fp_restore_context(), in C language.

BTW, why R6000 does not use r4k_fpu.S?
---
Atsushi Nemoto

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