[patch] MIPS: Trap instructions in division/multiply expansions

cgd@broadcom.com cgd@broadcom.com
Mon Jul 8 14:49:00 GMT 2002


At Mon, 8 Jul 2002 21:16:58 +0000 (UTC), "Maciej W. Rozycki" wrote:
>  I believe it would be correct to embed a non-zero code in trap
> instructions used in division/multiply macro expansions, similarly to how
> breakpoint codes (6 and 7) are used in the non-trap versions.  The
> following patch implements it.  At least MIPS/Linux extracts these codes
> from both break and trap opcodes and uses them to determine whether
> SIGTRAP or SIGFPE should be sent.  Any comments? 

What do other OSes do for these cases?  (In particular, i'm wondering
what the SGI assembler does.)



cgd



More information about the Binutils mailing list