mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
cpu: initialize cpu->exception_index on reset
This unbreaks linux-user (broken by e511b4d
, cpu-exec: reset exception_index
correctly, 2014-11-26).
Reported-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Tested-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Tested-by: Eduardo Habkost <ehabkost@redhat.com>
Message-id: 1418989994-17244-2-git-send-email-pbonzini@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
b574f60268
commit
f9d8f66735
2 changed files with 1 additions and 3 deletions
|
@ -249,6 +249,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;
|
||||
memset(cpu->tb_jmp_cache, 0, TB_JMP_CACHE_SIZE * sizeof(void *));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue