summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author yz70s <yz70s@users.noreply.github.com>2017-07-03 20:48:09 +0200
committer yz70s <yz70s@users.noreply.github.com>2017-07-03 21:06:22 +0200
commit435fee169a3e0bf13ccf10625fc795b26b3f243a (patch)
tree3b5985e6752e2be78a640bd94ac708f048d61e30
parent734951de8a9d68fa7d96450c3728cb13bc48121f (diff)
isa.cpp: add unmap_device method and in install16_device use io space width (nw)
-rw-r--r--src/devices/bus/isa/isa.cpp2
-rw-r--r--src/devices/bus/isa/isa.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/bus/isa/isa.cpp b/src/devices/bus/isa/isa.cpp
index 740df102b8f..88822b1f78e 100644
--- a/src/devices/bus/isa/isa.cpp
+++ b/src/devices/bus/isa/isa.cpp
@@ -485,7 +485,7 @@ void isa16_device::device_start()
void isa16_device::install16_device(offs_t start, offs_t end, read16_delegate rhandler, write16_delegate whandler)
{
- int buswidth = m_memwidth;
+ int buswidth = m_iowidth;
switch(buswidth)
{
case 16:
diff --git a/src/devices/bus/isa/isa.h b/src/devices/bus/isa/isa.h
index 901a1634509..2675d660b24 100644
--- a/src/devices/bus/isa/isa.h
+++ b/src/devices/bus/isa/isa.h
@@ -226,6 +226,7 @@ public:
void install_rom(device_t *dev, offs_t start, offs_t end, const char *tag, const char *region);
void install_memory(offs_t start, offs_t end, read8_delegate rhandler, write8_delegate whandler);
+ void unmap_device(offs_t start, offs_t end) const { m_iospace->unmap_readwrite(start, end); }
void unmap_bank(offs_t start, offs_t end);
void unmap_rom(offs_t start, offs_t end);
bool is_option_rom_space_available(offs_t start, int size);