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.

Backports commit b21ab1fc217b4a2b8f2f85d16bdd8510a7817a34 from qemu
This commit is contained in:
Soren Brinkmann 2018-02-13 22:36:38 -05:00 committed by Lioncash
parent 97719c5dc0
commit fd2ac3058f
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -589,6 +589,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;