summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hp9k_3xx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/hp9k_3xx.cpp')
-rw-r--r--src/mame/drivers/hp9k_3xx.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/hp9k_3xx.cpp b/src/mame/drivers/hp9k_3xx.cpp
index 552520d74b7..5c9e7feacc9 100644
--- a/src/mame/drivers/hp9k_3xx.cpp
+++ b/src/mame/drivers/hp9k_3xx.cpp
@@ -356,13 +356,13 @@ READ16_MEMBER(hp9k3xx_state::buserror16_r)
{
m_maincpu->set_input_line(M68K_LINE_BUSERROR, ASSERT_LINE);
m_maincpu->set_input_line(M68K_LINE_BUSERROR, CLEAR_LINE);
- m_lastpc = machine().device<cpu_device>("maincpu")->pc();
+ m_lastpc = m_maincpu->pc();
return 0;
}
WRITE16_MEMBER(hp9k3xx_state::buserror16_w)
{
- if (m_lastpc == machine().device<cpu_device>("maincpu")->pc()) {
+ if (m_lastpc == m_maincpu->pc()) {
logerror("%s: ignoring r-m-w double bus error\n", __FUNCTION__);
return;
}
@@ -375,13 +375,13 @@ READ32_MEMBER(hp9k3xx_state::buserror_r)
{
m_maincpu->set_input_line(M68K_LINE_BUSERROR, ASSERT_LINE);
m_maincpu->set_input_line(M68K_LINE_BUSERROR, CLEAR_LINE);
- m_lastpc = machine().device<cpu_device>("maincpu")->pc();
+ m_lastpc = m_maincpu->pc();
return 0;
}
WRITE32_MEMBER(hp9k3xx_state::buserror_w)
{
- if (m_lastpc == machine().device<cpu_device>("maincpu")->pc()) {
+ if (m_lastpc == m_maincpu->pc()) {
logerror("%s: ignoring r-m-w double bus error\n", __FUNCTION__);
return;
}