Skip to content
Snippets Groups Projects
Commit b11ce33f authored by Peter Maydell's avatar Peter Maydell
Browse files

Revert "cpu-exec: don't overwrite exception_index"


This reverts commit e01cecab,
which breaks booting of aarch64 Linux images.

Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent 2e020834
No related branches found
No related tags found
No related merge requests found
......@@ -610,9 +610,7 @@ static inline bool cpu_handle_interrupt(CPUState *cpu,
if (unlikely(atomic_read(&cpu->exit_request)
|| (use_icount && cpu->icount_decr.u16.low + cpu->icount_extra == 0))) {
atomic_set(&cpu->exit_request, 0);
if (cpu->exception_index == -1) {
cpu->exception_index = EXCP_INTERRUPT;
}
cpu->exception_index = EXCP_INTERRUPT;
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment