linux-mips
[Top] [All Lists]

Re: FP emulator patch

To: carstenl@mips.com
Subject: Re: FP emulator patch
From: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
Date: Thu, 16 Aug 2001 13:35:01 +0900
Cc: linux-mips@oss.sgi.com
In-reply-to: <3B7A70B8.ED92FE4@mips.com>
Organization: TOSHIBA Personal Computer System Corporation
References: <3B7A70B8.ED92FE4@mips.com>
Sender: owner-linux-mips@oss.sgi.com
>>>>> On Wed, 15 Aug 2001 14:53:12 +0200, Carsten Langgaard <carstenl@mips.com> 
>>>>> said:
carstenl> There has been some reports regarding FP emulator failures,
carstenl> which the attached patch should solve.  The patch include a
carstenl> fix for emulation of instructions in a COP1 delay-slot, a
carstenl> fix for FP context switching and some additional stuff ,
carstenl> which was needed to pass our torture test.

There is another bug in FPU emulator.  An instruction in delay slot of
bc1tl/bc1fl executed(or emulated) even if the branch not taken.  Here
is a patch to fix this.

Since current kernel calls FPU emulator on FP exception and FPU
emulator handles continuous FP instructions in one call, this bug
affects CPUs with FPU (not only CPUs without FPU).

---
Atsushi Nemoto

Attachment: cp1emu.c.patch
Description: Text document

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