From: Soumyajyotii Ssarkar <[email protected]>
Signed-off-by: Soumyajyotii Ssarkar <[email protected]>
Reviewed-by: Helge Deller <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
---
hw/scsi/lasi_ncr710.c | 4 ++++
hw/scsi/lasi_ncr710.h | 1 -
hw/scsi/ncr53c710.c | 2 +-
hw/scsi/ncr53c710.h | 1 +
4 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/hw/scsi/lasi_ncr710.c b/hw/scsi/lasi_ncr710.c
index b674a4066f..7e0076c7a3 100644
--- a/hw/scsi/lasi_ncr710.c
+++ b/hw/scsi/lasi_ncr710.c
@@ -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()
}
};
diff --git a/hw/scsi/lasi_ncr710.h b/hw/scsi/lasi_ncr710.h
index 3711233b0f..058718068e 100644
--- a/hw/scsi/lasi_ncr710.h
+++ b/hw/scsi/lasi_ncr710.h
@@ -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;
diff --git a/hw/scsi/ncr53c710.c b/hw/scsi/ncr53c710.c
index aaac31cbb9..ba064c6ecf 100644
--- a/hw/scsi/ncr53c710.c
+++ b/hw/scsi/ncr53c710.c
@@ -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,
diff --git a/hw/scsi/ncr53c710.h b/hw/scsi/ncr53c710.h
index 380e3959b3..6d30f9b663 100644
--- a/hw/scsi/ncr53c710.h
+++ b/hw/scsi/ncr53c710.h
@@ -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 */
--
2.51.1