diff options
author | Jiang, Yunhong <yunhong.jiang@intel.com> | 2012-04-01 10:16:15 +0800 |
---|---|---|
committer | Jiang, Yunhong <yunhong.jiang@intel.com> | 2012-04-07 01:27:49 +0800 |
commit | 663d101937e86e2551fdca2cdd10db5b1fcbc7e7 (patch) | |
tree | 76b7ac0e0991df0038f9fa67a5eadd8f5f69b887 /hw | |
parent | f597bde4b03c8732013c673ca920599d1ee3160d (diff) | |
download | external_qemu-663d101937e86e2551fdca2cdd10db5b1fcbc7e7.zip external_qemu-663d101937e86e2551fdca2cdd10db5b1fcbc7e7.tar.gz external_qemu-663d101937e86e2551fdca2cdd10db5b1fcbc7e7.tar.bz2 |
Fix save restore for nand device
Fix one issue because some field in nand device is not save/restore
Change-Id: I025addf4ddaea8420f6328b5e58c8514604b1719
Signed-off-by: Gao, Fengqian <fengqian.gao@intel.com>
Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Signed-off-by: Nakajima, Jun <jun.nakajiama@intel.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/goldfish_nand.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/goldfish_nand.c b/hw/goldfish_nand.c index 31e814b..55f77f6 100644 --- a/hw/goldfish_nand.c +++ b/hw/goldfish_nand.c @@ -140,7 +140,7 @@ typedef struct { * 2: saving actual disk contents as well * 3: use the correct data length and truncate to avoid padding. */ -#define NAND_DEV_STATE_SAVE_VERSION 3 +#define NAND_DEV_STATE_SAVE_VERSION 4 #define QFIELD_STRUCT nand_dev_controller_state QFIELD_BEGIN(nand_dev_controller_state_fields) @@ -149,6 +149,8 @@ QFIELD_BEGIN(nand_dev_controller_state_fields) QFIELD_INT32(addr_high), QFIELD_INT32(transfer_size), QFIELD_INT32(data), + QFIELD_INT32(batch_addr_low), + QFIELD_INT32(batch_addr_high), QFIELD_INT32(result), QFIELD_END |