linux-mips
[Top] [All Lists]

Re: fpu woes (TX3912)

To: "Kevin D. Kissell" <kevink@kevink.net>
Subject: Re: fpu woes (TX3912)
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Tue, 16 Jul 2002 16:03:29 +0200 (MET DST)
Cc: Ryan Martindale <ryan@qsicorp.com>, linux-mips@oss.sgi.com
In-reply-to: <01fa01c22c2a$3011d9c0$10eca8c0@grendel>
Organization: Technical University of Gdansk
Sender: owner-linux-mips@oss.sgi.com
On Mon, 15 Jul 2002, Kevin D. Kissell wrote:

> The following lines in my copy of the file are:
>                 memcpy((void *)(KSEG0 + 0x80), &except_vec3_generic, 0x80);
>                 break;
> 
>         case CPU_UNKNOWN:
>         default:
>                 panic("Unknown CPU type");
>         }
>         if (!(mips_cpu.options & MIPS_CPU_FPU)) {
>                 save_fp_context = fpu_emulator_save_context;
>                 restore_fp_context = fpu_emulator_restore_context;
>         }
> 
> This should overwrite the fp_context save/restore pointers
> with those of the emulator.  If that clause doesn't appear
> in your traps.c file, please try putting it in.

 It's worded a bit differently in the CVS:

        case CPU_UNKNOWN:
        default:
                panic("Unknown CPU type");
        }

        flush_icache_range(KSEG0, KSEG0 + 0x400);

        if (mips_cpu.options & MIPS_CPU_FPU) {
                save_fp_context = _save_fp_context;
                restore_fp_context = _restore_fp_context;
        } else {
                save_fp_context = fpu_emulator_save_context;
                restore_fp_context = fpu_emulator_restore_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>