mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 15:18:08 +00:00
cpu: initialize cpu->exception_index on reset
This unbreaks linux-user (broken by e511b4d, cpu-exec: reset exception_index correctly, 2014-11-26). Backports commit f9d8f6673591f30028e281e8ff6d5790adc2de83 from qemu
This commit is contained in:
parent
5e2862b29d
commit
f1a592f4a1
1 changed files with 1 additions and 0 deletions
|
@ -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 *));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue