projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f391ab
)
Fix NAND flash save/restore.
author
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 20 Jan 2009 04:15:47 +0000
(
04:15
+0000)
committer
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 20 Jan 2009 04:15:47 +0000
(
04:15
+0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6370
c046a42c
-6fe2-441c-8c8c-
71466251a162
hw/nand.c
patch
|
blob
|
history
diff --git
a/hw/nand.c
b/hw/nand.c
index 11f8efca282f73c296c3663a91e661b913ddc223..e73a1b8a8099fead6286c88997255bd346d219c6 100644
(file)
--- a/
hw/nand.c
+++ b/
hw/nand.c
@@
-492,6
+492,9
@@
struct nand_flash_s *nand_init(int manf_id, int chip_id)
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);