summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-12-03 10:16:11 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-12-03 10:16:21 -0500
commite9a969f154dbebd97bfbc21168c3fa8c5d4c337f (patch)
tree2ed8729d2eee8284ab4f166d9db584d05095165c
parent3b0e83caadb27800c92d6abcbb079dcfe413f66f (diff)
h8_watchdog: Blah blah blah, side effects blah (nw)
-rw-r--r--src/devices/cpu/h8/h8_watchdog.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/devices/cpu/h8/h8_watchdog.cpp b/src/devices/cpu/h8/h8_watchdog.cpp
index b50b956abcf..b4e5080c104 100644
--- a/src/devices/cpu/h8/h8_watchdog.cpp
+++ b/src/devices/cpu/h8/h8_watchdog.cpp
@@ -67,9 +67,11 @@ void h8_watchdog_device::tcnt_update(uint64_t cur_time)
READ16_MEMBER(h8_watchdog_device::wd_r)
{
- tcnt_update();
-
- logerror("read\n");
+ if (!machine().side_effects_disabled())
+ {
+ tcnt_update();
+ logerror("read\n");
+ }
return 0;
}
@@ -99,7 +101,8 @@ WRITE16_MEMBER(h8_watchdog_device::wd_w)
READ16_MEMBER(h8_watchdog_device::rst_r)
{
- logerror("rst_r\n");
+ if (!machine().side_effects_disabled())
+ logerror("rst_r\n");
return 0;
}