summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/lpci/i82439tx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/lpci/i82439tx.cpp')
-rw-r--r--src/devices/bus/lpci/i82439tx.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/devices/bus/lpci/i82439tx.cpp b/src/devices/bus/lpci/i82439tx.cpp
index 1fe0e22717f..778e7f26bad 100644
--- a/src/devices/bus/lpci/i82439tx.cpp
+++ b/src/devices/bus/lpci/i82439tx.cpp
@@ -24,7 +24,8 @@ i82439tx_device::i82439tx_device(const machine_config &mconfig, const char *tag,
m_cpu_tag(nullptr),
m_region_tag(nullptr),
m_space(nullptr),
- m_rom(nullptr)
+ m_rom(nullptr),
+ m_cpu(*this, finder_base::DUMMY_TAG)
{
m_smram.smiact_n = 1;
}
@@ -442,10 +443,7 @@ void i82439tx_device::device_start()
{
northbridge_device::device_start();
// get address space we are working on
- device_t *cpu = machine().device(m_cpu_tag);
- assert(cpu != nullptr);
-
- m_space = &cpu->memory().space(AS_PROGRAM);
+ m_space = &((device_memory_interface *)m_cpu.target())->memory().space(AS_PROGRAM);
// get rom region
m_rom = machine().root_device().memregion(m_region_tag)->base();