- Watchdog gets its own namespace for state saving

- Corrected some comments
This commit is contained in:
Zsolt Vasvari 2008-03-02 03:39:43 +00:00
parent c7a0a7942f
commit 2ddf3da8dd
2 changed files with 5 additions and 5 deletions

View File

@ -969,12 +969,12 @@ static void cpu_inittimers(running_machine *machine)
interleave_boost_timer = timer_alloc(NULL, NULL); interleave_boost_timer = timer_alloc(NULL, NULL);
interleave_boost_timer_end = timer_alloc(end_interleave_boost, 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++) for (cpunum = 0; cpunum < cpu_gettotalcpu(); cpunum++)
{ {
const cpu_config *config = machine->config->cpu + cpunum; const cpu_config *config = machine->config->cpu + cpunum;
/* screen specific VBLANK callbacks */ /* VBLANK interrupts */
if (config->vblank_interrupts_per_frame > 0) if (config->vblank_interrupts_per_frame > 0)
{ {
const char *screen_tag; const char *screen_tag;
@ -1000,7 +1000,7 @@ static void cpu_inittimers(running_machine *machine)
video_screen_register_vbl_cb(machine, screen, on_vblank); video_screen_register_vbl_cb(machine, screen, on_vblank);
} }
/* periodic interrupt timer */ /* periodic interrupts */
if (config->timed_interrupt_period != 0) if (config->timed_interrupt_period != 0)
{ {
attotime timedint_period = attotime_make(0, config->timed_interrupt_period); attotime timedint_period = attotime_make(0, config->timed_interrupt_period);

View File

@ -46,8 +46,8 @@ void watchdog_init(running_machine *machine)
/* save some stuff in the default tag */ /* save some stuff in the default tag */
state_save_push_tag(0); state_save_push_tag(0);
state_save_register_item("cpu", 0, watchdog_enabled); state_save_register_item("watchdog", 0, watchdog_enabled);
state_save_register_item("cpu", 0, watchdog_counter); state_save_register_item("watchdog", 0, watchdog_counter);
state_save_pop_tag(); state_save_pop_tag();
} }