Linux MIPS Architecture development
 help / color / mirror / Atom feed
* used_math not cleared for new processes?
@ 2002-02-02  6:20 Zhang Fuxin
  2002-02-27 22:53 ` Jun Sun
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang Fuxin @ 2002-02-02  6:20 UTC (permalink / raw)
  To: linux-mips@oss.sgi.com

hi,linux-mips,
   I find that current->used_math isn't cleared when we start a new process.Is it
intended? I mean 'start_thread' in do_exec but not 'copy_thread' in do_fork when
speaking 'start a new process'. We can/should? keep used_math for the latter,but for
the former?

   It leads to a failure in libm-test(the fpu control register doesn't equal to default)
I think the reason is that init_fpu fail to be called with used_math set.
    
  BTW: besides this failure,i see a lot of more related to extra "Invalid operation" exception.
e.g.:
   exp(NaN) == NaN: Exception "Invalid operation" set
   fmax (0, NaN) == 0: Exception "Invalid operation" set
..
 
  My cpu is IDT RC64474,which is basically a r4600.

  I think the cause probably is mips's special SNaN and QNaN handling.

  Could somebody explain?

Regards
            Zhang Fuxin
            fxzhang@ict.ac.cn

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

end of thread, other threads:[~2002-02-27 23:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-02  6:20 used_math not cleared for new processes? Zhang Fuxin
2002-02-27 22:53 ` Jun Sun

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