summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author yz70s <yz70s@users.noreply.github.com>2018-09-17 08:25:31 +0200
committer yz70s <yz70s@users.noreply.github.com>2018-09-17 08:25:31 +0200
commit383eb1b7aa4945885f0ff877895d8b3e3dfd0bb1 (patch)
tree915db0acc7a31fbea59215b3c3014b855983b43a
parent6594ecd48936709df5fec02f5fde1f5617f32c00 (diff)
pcipc.cpp: unmapped memory areas should read as all 1s (nw)
-rw-r--r--src/mame/drivers/pcipc.cpp14
-rw-r--r--src/mame/includes/nforcepc.h2
2 files changed, 15 insertions, 1 deletions
diff --git a/src/mame/drivers/pcipc.cpp b/src/mame/drivers/pcipc.cpp
index 32e17547c61..8068ba762df 100644
--- a/src/mame/drivers/pcipc.cpp
+++ b/src/mame/drivers/pcipc.cpp
@@ -50,6 +50,8 @@ public:
pcipc_state(const machine_config &mconfig, device_type type, const char *tag);
private:
+ void pcipc_map(address_map &map);
+ void pcipc_map_io(address_map &map);
DECLARE_WRITE8_MEMBER(boot_state_phoenix_w);
DECLARE_WRITE8_MEMBER(boot_state_phoenix_ver40_rev6_w);
DECLARE_WRITE8_MEMBER(boot_state_award_w);
@@ -501,8 +503,20 @@ void pcipc_state::superio_config(device_t *device)
fdc.nrts2().set(":serport1", FUNC(rs232_port_device::write_rts));
}
+void pcipc_state::pcipc_map(address_map &map)
+{
+ map.unmap_value_high();
+}
+
+void pcipc_state::pcipc_map_io(address_map &map)
+{
+ map.unmap_value_high();
+}
+
MACHINE_CONFIG_START(pcipc_state::pcipc)
MCFG_DEVICE_ADD("maincpu", PENTIUM, 90000000)
+ MCFG_DEVICE_PROGRAM_MAP(pcipc_map)
+ MCFG_DEVICE_IO_MAP(pcipc_map_io)
MCFG_DEVICE_IRQ_ACKNOWLEDGE_DEVICE("pci:07.0:pic8259_master", pic8259_device, inta_cb)
MCFG_I386_SMIACT(WRITELINE("pci:00.0", i82439hx_host_device, smi_act_w))
diff --git a/src/mame/includes/nforcepc.h b/src/mame/includes/nforcepc.h
index 81142b16249..475da789757 100644
--- a/src/mame/includes/nforcepc.h
+++ b/src/mame/includes/nforcepc.h
@@ -1,5 +1,5 @@
// license:BSD-3-Clause
-// copyright-holders:
+// copyright-holders: Samuele Zannoli
#ifndef NFORCEPC_H
#define NFORCEPC_H