qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6370] Fix NAND flash save/restore.
@ 2009-01-20  4:15 Paul Brook
  0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2009-01-20  4:15 UTC (permalink / raw)
  To: qemu-devel

Revision: 6370
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6370
Author:   pbrook
Date:     2009-01-20 04:15:47 +0000 (Tue, 20 Jan 2009)

Log Message:
-----------
Fix NAND flash save/restore.

Modified Paths:
--------------
    trunk/hw/nand.c

Modified: trunk/hw/nand.c
===================================================================
--- trunk/hw/nand.c	2009-01-19 16:34:10 UTC (rev 6369)
+++ trunk/hw/nand.c	2009-01-20 04:15:47 UTC (rev 6370)
@@ -492,6 +492,9 @@
     if (pagesize)
         s->storage = (uint8_t *) memset(qemu_malloc(s->pages * pagesize),
                         0xff, s->pages * pagesize);
+    /* Give s->ioaddr a sane value in case we save state before it
+       is used.  */
+    s->ioaddr = s->io;
 
     register_savevm("nand", -1, 0, nand_save, nand_load, s);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-20  4:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-20  4:15 [Qemu-devel] [6370] Fix NAND flash save/restore Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).