mirror of
https://github.com/holub/mame
synced 2025-06-26 06:14:12 +03:00
- Watchdog gets its own namespace for state saving
- Corrected some comments
This commit is contained in:
parent
c7a0a7942f
commit
2ddf3da8dd
@ -969,12 +969,12 @@ static void cpu_inittimers(running_machine *machine)
|
||||
interleave_boost_timer = timer_alloc(NULL, NULL);
|
||||
interleave_boost_timer_end = timer_alloc(end_interleave_boost, NULL);
|
||||
|
||||
/* register the interrupt handercallbacks */
|
||||
/* register the interrupt handler callbacks */
|
||||
for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++)
|
||||
{
|
||||
const cpu_config *config = machine->config->cpu + cpunum;
|
||||
|
||||
/* screen specific VBLANK callbacks */
|
||||
/* VBLANK interrupts */
|
||||
if (config->vblank_interrupts_per_frame > 0)
|
||||
{
|
||||
const char *screen_tag;
|
||||
@ -1000,7 +1000,7 @@ static void cpu_inittimers(running_machine *machine)
|
||||
video_screen_register_vbl_cb(machine, screen, on_vblank);
|
||||
}
|
||||
|
||||
/* periodic interrupt timer */
|
||||
/* periodic interrupts */
|
||||
if (config->timed_interrupt_period != 0)
|
||||
{
|
||||
attotime timedint_period = attotime_make(0, config->timed_interrupt_period);
|
||||
|
@ -46,8 +46,8 @@ void watchdog_init(running_machine *machine)
|
||||
|
||||
/* save some stuff in the default tag */
|
||||
state_save_push_tag(0);
|
||||
state_save_register_item("cpu", 0, watchdog_enabled);
|
||||
state_save_register_item("cpu", 0, watchdog_counter);
|
||||
state_save_register_item("watchdog", 0, watchdog_enabled);
|
||||
state_save_register_item("watchdog", 0, watchdog_counter);
|
||||
state_save_pop_tag();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user