diff options
Diffstat (limited to 'src/devices/cpu/h8/h8_watchdog.cpp')
| -rw-r--r-- | src/devices/cpu/h8/h8_watchdog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/cpu/h8/h8_watchdog.cpp b/src/devices/cpu/h8/h8_watchdog.cpp index 91c097b8db1..19d9131819a 100644 --- a/src/devices/cpu/h8/h8_watchdog.cpp +++ b/src/devices/cpu/h8/h8_watchdog.cpp @@ -27,7 +27,7 @@ UINT64 h8_watchdog_device::internal_update(UINT64 current_time) int shift = (type == S ? div_s : div_bh)[tcsr & TCSR_CKS]; UINT64 spos = tcnt_cycle_base >> shift; return (spos + 0x100 - tcnt) << shift; - + } else return 0; } @@ -44,7 +44,7 @@ void h8_watchdog_device::tcnt_update(UINT64 cur_time) int next_tcnt = tcnt + int(epos - spos); tcnt = next_tcnt; tcnt_cycle_base = cur_time; - // logerror("%10lld tcnt %02x -> %03x shift=%d\n", cur_time, tcnt, next_tcnt, shift); + // logerror("%10lld tcnt %02x -> %03x shift=%d\n", cur_time, tcnt, next_tcnt, shift); if(next_tcnt >= 0x100) { logerror("watchdog triggered\n"); @@ -57,7 +57,7 @@ void h8_watchdog_device::tcnt_update(UINT64 cur_time) if(!(tcsr & TCSR_OVF)) { tcsr |= TCSR_OVF; intc->internal_interrupt(irq); - } + } } } } else @@ -91,7 +91,7 @@ WRITE16_MEMBER(h8_watchdog_device::wd_w) if(tcsr & TCSR_TME) { tcnt = data & 0xff; tcnt_cycle_base = cpu->total_cycles(); - // logerror("%10lld tcnt = %02x\n", tcnt_cycle_base, tcnt); + // logerror("%10lld tcnt = %02x\n", tcnt_cycle_base, tcnt); } cpu->internal_update(); } |
