Fix for issues #365 and #361 on cv32e40s.
Created by: silabs-oysteink
When waking up from sleep (exiting FSM state SLEEP), the cause of wakeup is now flopped to enable the FSM to take the action according to the wakeup reason, although there may be higher priority events appearing after the wakeup.
Signed-off-by: Oystein Knauserud Oystein.Knauserud@silabs.com