h8: Fix enable handling in timers [O. Galibert]

This commit is contained in:
Olivier Galibert 2014-03-26 08:55:35 +00:00
parent cf941cb006
commit 987d44a403
2 changed files with 2 additions and 3 deletions

View File

@ -158,13 +158,13 @@ WRITE16_HANDLER(h8_timer16_channel_device::tbr_w)
void h8_timer16_channel_device::device_start()
{
io = &cpu->space(AS_IO);
intc = owner()->siblingdevice<h8_intc_device>(intc_tag);
channel_active = false;
}
void h8_timer16_channel_device::device_reset()
{
channel_active = false;
// Don't touch channel_active here, top level device handles it
tcr = 0;
tcnt = 0;
memset(tgr, 0xff, sizeof(tgr));

View File

@ -133,7 +133,6 @@ public:
protected:
required_device<h8_device> cpu;
address_space *io;
h8_timer16_channel_device *chained_timer;
h8_intc_device *intc;
const char *chain_tag, *intc_tag;