Initial state store/load for exception entry

Signed-off-by: mjanikok <janimikokkonen@gmail.com>