diff options
Diffstat (limited to 'hw/block/onenand.c')
-rw-r--r-- | hw/block/onenand.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/block/onenand.c b/hw/block/onenand.c index b7423607d9..30e40f3914 100644 --- a/hw/block/onenand.c +++ b/hw/block/onenand.c @@ -137,7 +137,7 @@ static void onenand_intr_update(OneNANDState *s) qemu_set_irq(s->intr, ((s->intstatus >> 15) ^ (~s->config[0] >> 6)) & 1); } -static void onenand_pre_save(void *opaque) +static int onenand_pre_save(void *opaque) { OneNANDState *s = opaque; if (s->current == s->otp) { @@ -147,6 +147,8 @@ static void onenand_pre_save(void *opaque) } else { s->current_direction = 0; } + + return 0; } static int onenand_post_load(void *opaque, int version_id) |