summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/pci.cpp
diff options
context:
space:
mode:
author Ted Green <tedgreen99@protonmail.com>2017-05-05 10:54:28 -0600
committer Ted Green <tedgreen99@protonmail.com>2017-05-05 10:55:46 -0600
commiteef01e78d65ee5ace25e78ee10c282da5a04af45 (patch)
treee007035fa0f41a11e4a6c5a917279d8e7049a1dd /src/devices/machine/pci.cpp
parentc61e1ba31a01c18749530e76666c28ccd398c748 (diff)
pci: Add save state support. (nw)
pci-ide: Allow for setting the top 12 decode address bits in legacy mode. (nw) pci-ide: Add save state support. (nw) pci9050: Add save state support. (nw) vrc4373: Add save state support. (nw) gt64xxx: Remove address map trampolines. (nw) gt64xxx: Add save state support. (nw) atlantis: Add save state support. (nw)
Diffstat (limited to 'src/devices/machine/pci.cpp')
-rw-r--r--src/devices/machine/pci.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/devices/machine/pci.cpp b/src/devices/machine/pci.cpp
index c515a79780c..5edc3890f6d 100644
--- a/src/devices/machine/pci.cpp
+++ b/src/devices/machine/pci.cpp
@@ -103,6 +103,12 @@ void pci_device::device_start()
expansion_rom_size = 0;
expansion_rom_base = 0;
+ for (int i = 0; i < ARRAY_LENGTH(bank_infos); i++) {
+ save_item(NAME(bank_infos[i].adr), i);
+ }
+ save_item(NAME(command));
+ save_item(NAME(command_mask));
+ save_item(NAME(status));
save_item(NAME(intr_line));
save_item(NAME(intr_pin));
}
@@ -836,6 +842,9 @@ void pci_host_device::device_start()
io_window_start = io_window_end = io_offset = 0;
reset_all_mappings();
+
+ save_item(NAME(config_address));
+
}
void pci_host_device::device_reset()