eZ80: ensure DECL_SAVESTATE() is done when needed

This commit is contained in:
Byron Ellacott 2021-02-17 17:38:04 +10:00 committed by Xiang Xiao
parent f0ccce3212
commit e50b5bef8b

View File

@ -47,6 +47,8 @@ FAR chipreg_t *z80_doirq(uint8_t irq, FAR chipreg_t *regs)
{
board_autoled_on(LED_INIRQ);
DECL_SAVESTATE();
#ifdef CONFIG_SUPPRESS_INTERRUPTS
IRQ_ENTER(regs);
@ -61,8 +63,6 @@ FAR chipreg_t *z80_doirq(uint8_t irq, FAR chipreg_t *regs)
if (irq < NR_IRQS)
{
DECL_SAVESTATE();
/* Indicate that we have entered IRQ processing logic */
IRQ_ENTER(irq, regs);