]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
ncr710: Add missing vmstate entries
authorSoumyajyotii Ssarkar <soumyajyotisarkar23@gmail.com>
Sun, 9 Nov 2025 14:58:51 +0000 (15:58 +0100)
committerHelge Deller <deller@gmx.de>
Sun, 9 Nov 2025 15:09:35 +0000 (16:09 +0100)
Signed-off-by: Soumyajyotii Ssarkar <soumyajyotisarkar23@gmail.com>
Reviewed-by: Helge Deller <deller@gmx.de>
Signed-off-by: Helge Deller <deller@gmx.de>
hw/scsi/lasi_ncr710.c
hw/scsi/lasi_ncr710.h
hw/scsi/ncr53c710.c
hw/scsi/ncr53c710.h

index b674a4066fce41a4a3222b6ae83d641c59e52574..7e0076c7a3b4d7c7d3682c4692270cde6216ad7a 100644 (file)
@@ -160,6 +160,10 @@ static const VMStateDescription vmstate_lasi_ncr710 = {
     .version_id = 1,
     .minimum_version_id = 1,
     .fields = (const VMStateField[]) {
+        VMSTATE_UINT32(hw_type, LasiNCR710State),
+        VMSTATE_UINT32(sversion, LasiNCR710State),
+        VMSTATE_UINT32(hversion, LasiNCR710State),
+        VMSTATE_STRUCT(ncr710, LasiNCR710State, 1, vmstate_ncr710, NCR710State),
         VMSTATE_END_OF_LIST()
     }
 };
index 3711233b0f5864ae9138bfb71701ea90506d0dc7..058718068e84a72f7b9f3e9325e00714f0c44619 100644 (file)
@@ -46,7 +46,6 @@ typedef struct LasiNCR710State {
     uint32_t hw_type;        /* Hardware type (HPHW_*) */
     uint32_t sversion;       /* Software version */
     uint32_t hversion;       /* Hardware version */
-    SCSIBus bus;
     NCR710State ncr710;
 } LasiNCR710State;
 
index aaac31cbb93b864cde28f6a2ebc253e4588e034d..ba064c6ecff4910dd874e9108a6b77f197d6a0c6 100644 (file)
@@ -2250,7 +2250,7 @@ static const VMStateDescription vmstate_ncr710_scsi_fifo = {
     }
 };
 
-static const VMStateDescription vmstate_ncr710 = {
+const VMStateDescription vmstate_ncr710 = {
     .name = "ncr710",
     .version_id = 1,
     .minimum_version_id = 1,
index 380e3959b3b26729aecbb911d244d30684fcd677..6d30f9b6632666b6fa66deeb49780ac58bb6fb60 100644 (file)
@@ -242,5 +242,6 @@ void ncr710_transfer_data(SCSIRequest *req, uint32_t len);
 void ncr710_execute_script(NCR710State *s);
 void ncr710_set_phase(NCR710State *s, int phase);
 void ncr710_reselection_retry_callback(void *opaque);
+extern const VMStateDescription vmstate_ncr710;
 
 #endif /* HW_NCR53C710_H */