Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [Patch]  / 0 should send SIGFPE not SIGTRAP...
@ 2004-06-11 18:10 David Daney
  2004-06-11 18:12 ` David Daney
  0 siblings, 1 reply; 23+ messages in thread
From: David Daney @ 2004-06-11 18:10 UTC (permalink / raw)
  To: linux-mips

I am getting a SIGTRAP whenever an integer divide by 0 happens.  It 
should be sending SIGFPE.

It looks like kernel/traps.c is a little messed up.

The attached patch fixes it for me.

The decoding of the break instruction was selecting the wrong bits.  It 
looks like the trap instruction decoding was messed up also.  The patch 
fixes trap also, but I could not figure out how to get gcc to generate 
the trap form of division, so that part is untested.

David Daney.

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: [Patch]  / 0 should send SIGFPE not SIGTRAP...
@ 2004-06-28 15:19 cgd
  2004-06-28 15:36 ` Maciej W. Rozycki
  2004-07-19 14:21 ` Maciej W. Rozycki
  0 siblings, 2 replies; 23+ messages in thread
From: cgd @ 2004-06-28 15:19 UTC (permalink / raw)
  To: cgd, macro; +Cc: binutils, ddaney, linux-mips, ralf, rsandifo

personally, i'd make the comment on the 'break' testcase in mips32.s a bit
clearer and more explicit.  e.g. "for a while, break for mips32 
took a 20 bit code.  But that was incompatible and caused problems, so
now it's back to the old 10 bit code, or two comma-separated 10 bit codes."

Otherwise, people might look and say "huh?"


chris

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2004-07-19 23:29 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-11 18:10 [Patch] / 0 should send SIGFPE not SIGTRAP David Daney
2004-06-11 18:12 ` David Daney
2004-06-11 18:20   ` David Daney
2004-06-11 19:12     ` Maciej W. Rozycki
     [not found]       ` <mailpost.1086981251.16853@news-sj1-1>
2004-06-11 19:27         ` cgd
2004-06-11 19:50           ` Maciej W. Rozycki
2004-06-11 20:51             ` David Daney
2004-06-11 21:10               ` [Patch] (revised patch) " David Daney
2004-06-13  8:33                 ` Geert Uytterhoeven
2004-06-14 12:52                   ` Maciej W. Rozycki
2004-06-22 21:30           ` [Patch] " Maciej W. Rozycki
2004-06-23 19:30             ` David Daney
2004-06-23 19:38               ` Maciej W. Rozycki
2004-06-24 10:39             ` Richard Sandiford
2004-06-24 18:34               ` Maciej W. Rozycki
     [not found]                 ` <mailpost.1088102121.25381@news-sj1-1>
2004-06-24 18:46                   ` cgd
2004-06-28 13:46                     ` Maciej W. Rozycki
  -- strict thread matches above, loose matches on Subject: below --
2004-06-28 15:19 cgd
2004-06-28 15:36 ` Maciej W. Rozycki
2004-07-19 14:21 ` Maciej W. Rozycki
     [not found]   ` <mailpost.1090246948.15046@news-sj1-1>
2004-07-19 15:19     ` cgd
2004-07-19 15:42       ` Maciej W. Rozycki
2004-07-19 23:29   ` Thiemo Seufer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox