This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [patch] MIPS: Trap instructions in division/multiplyexpansions
- From: cgd at broadcom dot com
- To: macro at ds2 dot pg dot gda dot pl
- Cc: binutils at sources dot redhat dot com
- Date: 08 Jul 2002 14:45:04 -0700
- Subject: Re: [patch] MIPS: Trap instructions in division/multiplyexpansions
- References: <Pine.GSO.3.96.1020708230512.6296Q-100000@delta.ds2.pg.gda.pl><mailpost.1026163018.21246@news-sj1-1>
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