summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2020-04-06 19:21:07 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2020-04-06 19:21:07 +0200
commitbc0762921663b889aa07a7d91d1d3eb3cd18b9d6 (patch)
tree92bb6394471425fe016499d503b3c21c7d9f1c30
parent578dd8f93655bc9aedb6b43240156486ac239c8e (diff)
pci.cpp: fixed 'Fatal error: install_ram_generic: In range cdcdcdcc-9b9b9b98 mirror 0, start address is after the end address' for pcipc in devnoclear debug builds (nw)
i82439tx.cpp: fixed 'Fatal error: unmap_generic: In range 42723233-103fffff mirror 0, start address is after the end address.' for m55hipl in devnoclear debug builds (nw)
-rw-r--r--src/devices/bus/lpci/i82439tx.cpp2
-rw-r--r--src/devices/machine/pci.cpp7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/devices/bus/lpci/i82439tx.cpp b/src/devices/bus/lpci/i82439tx.cpp
index be768007a0c..62010fc5f21 100644
--- a/src/devices/bus/lpci/i82439tx.cpp
+++ b/src/devices/bus/lpci/i82439tx.cpp
@@ -26,6 +26,8 @@ i82439tx_device::i82439tx_device(const machine_config &mconfig, const char *tag,
m_rom(nullptr)
{
m_smram.smiact_n = 1;
+ m_smram.tseg_size = 0;
+ m_smram.mapping = 0;
}
void i82439tx_device::i82439tx_configure_memory(uint8_t val, offs_t begin, offs_t end)
diff --git a/src/devices/machine/pci.cpp b/src/devices/machine/pci.cpp
index 804fcbe6c1f..372cfac1913 100644
--- a/src/devices/machine/pci.cpp
+++ b/src/devices/machine/pci.cpp
@@ -72,6 +72,9 @@ pci_device::pci_device(const machine_config &mconfig, device_type type, const ch
revision = 0x00;
pclass = 0xffffff;
subsystem_id = 0xffffffff;
+ expansion_rom = nullptr;
+ expansion_rom_size = 0;
+ expansion_rom_base = 0;
is_multifunction_device = false;
intr_pin = 0x0;
intr_line = 0xff;
@@ -102,10 +105,6 @@ void pci_device::device_start()
bank_count = 0;
bank_reg_count = 0;
- expansion_rom = nullptr;
- 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);
}