diff --git a/qemu/qom/cpu.c b/qemu/qom/cpu.c index ca43fdb2..217cf770 100644 --- a/qemu/qom/cpu.c +++ b/qemu/qom/cpu.c @@ -167,6 +167,7 @@ static void cpu_common_reset(CPUState *cpu) cpu->icount_extra = 0; cpu->icount_decr.u32 = 0; cpu->can_do_io = 0; + cpu->exception_index = -1; cpu->crash_occurred = false; memset(cpu->tb_jmp_cache, 0, TB_JMP_CACHE_SIZE * sizeof(void *)); }