Flush windows in context_save_arch() instead of context_restore_arch()
|Reported by:||Jakub Jermář||Owned by:||Jakub Jermář|
|Blocker for:||Depends on:|
Gedare Bloom suggests:
Issue the flushw instruction in context_save_arch instead of context_restore_arch, overwriting the window at cwp with the restored thread state, and "pretending" a flushw occurred by setting CANRESTORE to 0 and CANSAVE to NWINDOWS - 2
The reason I think this would be an improvement is that (1) it makes more sense to me to flush the windows while saving state, and (2) yousave a register spill and register fill of scheduler()'s window.