[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 14/14] block: m25p80: Fix vmstate structure name
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PULL 14/14] block: m25p80: Fix vmstate structure name |
Date: |
Tue, 6 Sep 2016 14:08:07 +0100 |
From: Marcin Krzeminski <address@hidden>
Correct bad name of the vmstate structure. Since this breaks
compatibility also update vmstate version back to 0 and make
all fields independent of the VMState version.
Signed-off-by: Marcin Krzeminski <address@hidden>
Acked-by: Alistair Francis <address@hidden>
Message-id: address@hidden
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>
---
hw/block/m25p80.c | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c
index 9828ee6..d29ff4c 100644
--- a/hw/block/m25p80.c
+++ b/hw/block/m25p80.c
@@ -1189,9 +1189,9 @@ static Property m25p80_properties[] = {
};
static const VMStateDescription vmstate_m25p80 = {
- .name = "xilinx_spi",
- .version_id = 3,
- .minimum_version_id = 1,
+ .name = "m25p80",
+ .version_id = 0,
+ .minimum_version_id = 0,
.pre_save = m25p80_pre_save,
.fields = (VMStateField[]) {
VMSTATE_UINT8(state, Flash),
@@ -1200,20 +1200,19 @@ static const VMStateDescription vmstate_m25p80 = {
VMSTATE_UINT32(pos, Flash),
VMSTATE_UINT8(needed_bytes, Flash),
VMSTATE_UINT8(cmd_in_progress, Flash),
- VMSTATE_UNUSED(4),
VMSTATE_UINT32(cur_addr, Flash),
VMSTATE_BOOL(write_enable, Flash),
- VMSTATE_BOOL_V(reset_enable, Flash, 2),
- VMSTATE_UINT8_V(ear, Flash, 2),
- VMSTATE_BOOL_V(four_bytes_address_mode, Flash, 2),
- VMSTATE_UINT32_V(nonvolatile_cfg, Flash, 2),
- VMSTATE_UINT32_V(volatile_cfg, Flash, 2),
- VMSTATE_UINT32_V(enh_volatile_cfg, Flash, 2),
- VMSTATE_BOOL_V(quad_enable, Flash, 3),
- VMSTATE_UINT8_V(spansion_cr1nv, Flash, 3),
- VMSTATE_UINT8_V(spansion_cr2nv, Flash, 3),
- VMSTATE_UINT8_V(spansion_cr3nv, Flash, 3),
- VMSTATE_UINT8_V(spansion_cr4nv, Flash, 3),
+ VMSTATE_BOOL(reset_enable, Flash),
+ VMSTATE_UINT8(ear, Flash),
+ VMSTATE_BOOL(four_bytes_address_mode, Flash),
+ VMSTATE_UINT32(nonvolatile_cfg, Flash),
+ VMSTATE_UINT32(volatile_cfg, Flash),
+ VMSTATE_UINT32(enh_volatile_cfg, Flash),
+ VMSTATE_BOOL(quad_enable, Flash),
+ VMSTATE_UINT8(spansion_cr1nv, Flash),
+ VMSTATE_UINT8(spansion_cr2nv, Flash),
+ VMSTATE_UINT8(spansion_cr3nv, Flash),
+ VMSTATE_UINT8(spansion_cr4nv, Flash),
VMSTATE_END_OF_LIST()
}
};
--
2.7.4
- Re: [Qemu-devel] [PULL 01/14] ast2400: add a memory controller device model, (continued)
[Qemu-devel] [PULL 08/14] palmetto-bmc: replace palmetto_bmc with aspeed, Peter Maydell, 2016/09/06
[Qemu-devel] [PULL 04/14] ast2400: rename the Aspeed SoC files to aspeed_soc, Peter Maydell, 2016/09/06
[Qemu-devel] [PULL 09/14] palmetto-bmc: add board specific configuration, Peter Maydell, 2016/09/06
[Qemu-devel] [PULL 10/14] hw/misc: use macros to define hw-strap1 register on the AST2400 Aspeed SoC, Peter Maydell, 2016/09/06
[Qemu-devel] [PULL 06/14] aspeed-soc: provide a framework to add new SoCs, Peter Maydell, 2016/09/06
[Qemu-devel] [PULL 07/14] palmetto-bmc: rename the Aspeed board file to aspeed.c, Peter Maydell, 2016/09/06
[Qemu-devel] [PULL 14/14] block: m25p80: Fix vmstate structure name,
Peter Maydell <=
[Qemu-devel] [PULL 12/14] arm: add support for an ast2500 evaluation board, Peter Maydell, 2016/09/06
[Qemu-devel] [PULL 13/14] palmetto-bmc: remove extra no_sdcard assignement, Peter Maydell, 2016/09/06
[Qemu-devel] [PULL 05/14] ast2400: replace ast2400 with aspeed_soc, Peter Maydell, 2016/09/06
[Qemu-devel] [PULL 11/14] aspeed: add a ast2500 SoC and support to the SCU and SDMC controllers, Peter Maydell, 2016/09/06
Re: [Qemu-devel] [PULL 00/14] target-arm queue, no-reply, 2016/09/06