Raymond Toy pushed to branch master at cmucl / cmucl
Commits: 6feaee2d by Raymond Toy at 2016-01-16T08:37:03Z Add comment on why RESTORE_FPU is needed.
- - - - -
1 changed file:
- src/lisp/x86-arch.c
Changes:
===================================== src/lisp/x86-arch.c ===================================== --- a/src/lisp/x86-arch.c +++ b/src/lisp/x86-arch.c @@ -320,6 +320,12 @@ sigtrap_handler(HANDLER_ARGS) /* This is just for info in case monitor wants to print an approx */ current_control_stack_pointer = (unsigned long *) SC_SP(os_context);
+ + /* + * In many places in the switch below, we eventually throw instead + * of returning from the signal handler. So, just in case, set + * the current FPU modes from the saved context. + */ RESTORE_FPU(os_context);
/*
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/commit/6feaee2df686c62509f7c2292d...