Instead of a separate context-switch flag, set HpLim to zero