diff options
Diffstat (limited to 'hw/block/nand.c')
-rw-r--r-- | hw/block/nand.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/block/nand.c b/hw/block/nand.c index 0d33ac2..76dcd3f 100644 --- a/hw/block/nand.c +++ b/hw/block/nand.c @@ -325,11 +325,13 @@ static void nand_command(NANDFlashState *s) } } -static void nand_pre_save(void *opaque) +static int nand_pre_save(void *opaque) { NANDFlashState *s = NAND(opaque); s->ioaddr_vmstate = s->ioaddr - s->io; + + return 0; } static int nand_post_load(void *opaque, int version_id) |