Resetting a MIPS cpu currently does not work, because important entries in env (CPUMIPSState) are filled with 0 at the beginning of function cpu_reset.
At system start, these values are set in cpu_mips_register. After reset, env->nb_tlb == 0 results in a division by zero crash of QEMU. We can either re-arrange the entries in CPUMIPSState (move those which must not be zero'ed to the end), or cpu_reset must call cpu_mips_register. Which solution is better? Stefan