IAIK/sweb

-mgeneral-regs-only on x86?

dgruss opened this issue · 4 comments

Should we use -mgeneral-regs-only somewhere just to be sure?

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.

Relevant issue: #223

already implemented