v7debug: flush icache and other state on restart