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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
        }
        return true;
    }