Subject: Re: Floating point support code
To: Richard Earnshaw <Richard.Earnshaw@buzzard.freeserve.co.uk>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: tech-kern
Date: 03/16/2005 15:04:23
Richard Earnshaw <Richard.Earnshaw@buzzard.freeserve.co.uk> writes:

> 1) Do other cores have imprecise faults? (By 'fault' I mean to raise an 
> exception or to do software emulation of the operation because the values 
> in question can't be determined by the hardware.  By imprecise I mean that 
> the current PC value does not point to the instruction and that it isn't a 
> simple permutation of that value to get the address of the faulting 
> instruction.)  I think the answer to this one must be 'yes', but I'd like 
> to see confirmation from someone more familiar with the other 
> architectures.

Alpha does. There's some code to cope with it in
arch/alpha/alpha/fp_complete.c, but I can't speak to it in detail. I
believe that in that case, the PC of the faulting instruction can be
recovered.

        - Nathan