summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-10-20 11:07:30 +0200
committerJuan Quintela <quintela@redhat.com>2023-11-01 16:13:58 +0100
commit7769fb81efeda6546f4c0fe3324bde91443aabec (patch)
tree40f7955175fb95a3cb397a064ab30ef6e1ab7927
parenta9500913ab96f59eb8f7e5fc79f80d5d66842102 (diff)
downloadfocaccia-qemu-7769fb81efeda6546f4c0fe3324bde91443aabec.tar.gz
focaccia-qemu-7769fb81efeda6546f4c0fe3324bde91443aabec.zip
migration: Use vmstate_register_any() for eeprom93xx
We can have more than one eeprom93xx.
For instance:

e100_nic_realize() -> eeprom93xx_new()

Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231020090731.28701-13-quintela@redhat.com>
-rw-r--r--hw/nvram/eeprom93xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/nvram/eeprom93xx.c b/hw/nvram/eeprom93xx.c
index 1081e2cc0d..57d63638d7 100644
--- a/hw/nvram/eeprom93xx.c
+++ b/hw/nvram/eeprom93xx.c
@@ -321,7 +321,7 @@ eeprom_t *eeprom93xx_new(DeviceState *dev, uint16_t nwords)
     /* Output DO is tristate, read results in 1. */
     eeprom->eedo = 1;
     logout("eeprom = 0x%p, nwords = %u\n", eeprom, nwords);
-    vmstate_register(VMSTATE_IF(dev), 0, &vmstate_eeprom, eeprom);
+    vmstate_register_any(VMSTATE_IF(dev), &vmstate_eeprom, eeprom);
     return eeprom;
 }