-mgeneral-regs-only on x86?
dgruss opened this issue · 4 comments
dgruss commented
Should we use -mgeneral-regs-only somewhere just to be sure?
Ferdi265 commented
especially if students enable optimizations at some point, it can happen that some of the instruction set extension flags (-msse
and friends) are not set, and gcc will try to use that to vectorize code.
if that happens in userspace, fun things happen at/around context switches.
so yes, -mgeneral-regs-only
seems reasonable as long as SWEB has no support for saving/restoring floating point state.
dgruss commented
We do support FPU in userspace, so at least older SSE versions should
work...
dgruss commented
already implemented