提交 48927926 编写于 作者: P pbrook

Fix NAND flash save/restore.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6370 c046a42c-6fe2-441c-8c8c-71466251a162
上级 8f391ab4
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册