Commit b21ab1fc authored by Soren Brinkmann's avatar Soren Brinkmann Committed by Peter Maydell
Browse files

target-arm: A64: Print ELR when taking exceptions



When taking an exception print the content of the exception link
register. This is useful especially for synchronous exceptions because
in that case this registers holds the address of the instruction that
generated the exception.

Signed-off-by: default avatarSoren Brinkmann <soren.brinkmann@xilinx.com>
Message-id: 1435036655-16132-1-git-send-email-soren.brinkmann@xilinx.com
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent f3c2bda2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -533,6 +533,8 @@ void aarch64_cpu_do_interrupt(CPUState *cs)

        env->condexec_bits = 0;
    }
    qemu_log_mask(CPU_LOG_INT, "...with ELR 0x%" PRIx64 "\n",
                  env->elr_el[new_el]);

    pstate_write(env, PSTATE_DAIF | new_mode);
    env->aarch64 = 1;