Zhang Fuxin wrote:
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?
I think it make sense to clear used_math in do_exec(). It also improvies the
performance slightly by not loading the parent's FPU context when it uses the
FPU for the first time.
Do you have a patch for this?
Jun