From eef01e78d65ee5ace25e78ee10c282da5a04af45 Mon Sep 17 00:00:00 2001 From: Ted Green Date: Fri, 5 May 2017 10:54:28 -0600 Subject: 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) --- src/devices/machine/pci.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/devices/machine/pci.cpp') 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() -- cgit v1.2.3-70-g09d2