diff options
author | 2020-06-06 09:48:17 +0200 | |
---|---|---|
committer | 2020-06-06 09:48:17 +0200 | |
commit | 76afd29f5ba825e97000545e0b745f4b98bd9178 (patch) | |
tree | d29a781d3b5344ab17cbb0d9b610d42394feafe1 | |
parent | a7a967c69f511196cb0485b4e2c9d342ca6ee823 (diff) |
devices/machine/pci.cpp: fixed problem in pcipc driver in devnoclear builds (nw)
-rw-r--r-- | src/devices/machine/pci.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/devices/machine/pci.cpp b/src/devices/machine/pci.cpp index 372cfac1913..65d94e3ea54 100644 --- a/src/devices/machine/pci.cpp +++ b/src/devices/machine/pci.cpp @@ -78,6 +78,13 @@ pci_device::pci_device(const machine_config &mconfig, device_type type, const ch is_multifunction_device = false; intr_pin = 0x0; intr_line = 0xff; + for(int i=0; i<6; i++) { + bank_infos[i].adr = -1; + bank_infos[i].size = 0; + bank_infos[i].flags = 0; + bank_reg_infos[i].bank = -1; + bank_reg_infos[i].hi = 0; + } } void pci_device::set_ids(uint32_t _main_id, uint8_t _revision, uint32_t _pclass, uint32_t _subsystem_id) @@ -94,14 +101,6 @@ void pci_device::device_start() command_mask = 0x01bf; status = 0x0000; - for(int i=0; i<6; i++) { - bank_infos[i].adr = -1; - bank_infos[i].size = 0; - bank_infos[i].flags = 0; - bank_reg_infos[i].bank = -1; - bank_reg_infos[i].hi = 0; - } - bank_count = 0; bank_reg_count = 0; |