fix missing restore irqstate