On 2012-10-31 14:04, Andreas Färber wrote: > +/* CPUClass::reset() */ > +static void alpha_cpu_reset(CPUState *s) > +{ > + AlphaCPU *cpu = ALPHA_CPU(s); > + AlphaCPUClass *acc = ALPHA_CPU_GET_CLASS(cpu); > + CPUAlphaState *env = &cpu->env; > + > + if (qemu_loglevel_mask(CPU_LOG_RESET)) { > + qemu_log("CPU Reset (CPU %d)\n", env->cpu_index); > + log_cpu_state(env, 0); > + } > + > + acc->parent_reset(s); > + > + memset(env, 0, offsetof(CPUAlphaState, breakpoints)); > + tlb_flush(env, 1); > +}
Does this somehow reset the alarm_timer as well? I'd sort of known about its unfortunate position and resetting problems before, but I'd been ignoring it. As for whether this works... I'd be surprised if the bios I wrote needs nothing else for it to handle reset itself... r~