summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Sven Schnelle <svens@stackframe.org>2018-06-23 18:19:24 +0200
committer Olivier Galibert <galibert@pobox.com>2018-06-23 18:19:24 +0200
commit4ca776854e8c430213b91461b191527660fbf805 (patch)
tree9dca4050f8bd0c8f50405bc3c79b57f82ed2da73
parent0ea8acb45164e1ae736dacada40cccdc74f2ab18 (diff)
hp9k_3xx: IOCPU reset line is connected to cpu RESET I/O (nw) (#3689)
-rw-r--r--src/mame/drivers/hp9k_3xx.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mame/drivers/hp9k_3xx.cpp b/src/mame/drivers/hp9k_3xx.cpp
index 4b16c8b390d..47b449445a5 100644
--- a/src/mame/drivers/hp9k_3xx.cpp
+++ b/src/mame/drivers/hp9k_3xx.cpp
@@ -96,7 +96,7 @@ public:
m_vram(*this, "vram")
{ }
- required_device<cpu_device> m_maincpu;
+ required_device<m68000_base_device> m_maincpu;
optional_device<i8042_device> m_iocpu;
optional_device<hp_hil_mlc_device> m_mlc;
optional_device<sn76494_device> m_sound;
@@ -170,6 +170,8 @@ protected:
private:
+ DECLARE_WRITE_LINE_MEMBER(cpu_reset);
+
static constexpr uint8_t HIL_CS = 0x01;
static constexpr uint8_t HIL_WE = 0x02;
static constexpr uint8_t HIL_OE = 0x04;
@@ -319,9 +321,15 @@ uint32_t hp9k3xx_state::screen_update(screen_device &screen, bitmap_rgb32 &bitma
static INPUT_PORTS_START( hp9k330 )
INPUT_PORTS_END
+WRITE_LINE_MEMBER(hp9k3xx_state::cpu_reset)
+{
+ m_iocpu->reset();
+}
+
void hp9k3xx_state::machine_reset()
{
+ m_maincpu->set_reset_callback(write_line_delegate(FUNC(hp9k3xx_state::cpu_reset), this));
}
WRITE_LINE_MEMBER(hp9k3xx_state::gpib_irq)