diff options
author | Soren Brinkmann <soren.brinkmann@xilinx.com> | 2015-06-26 14:22:36 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2015-06-26 14:22:36 +0100 |
commit | b21ab1fc217b4a2b8f2f85d16bdd8510a7817a34 (patch) | |
tree | c054ed9990364f7645b55519f4dbbf49aa421156 /target-arm/helper-a64.c | |
parent | f3c2bda216a00676e40301b5843ac3d6c3b2537a (diff) | |
download | hqemu-b21ab1fc217b4a2b8f2f85d16bdd8510a7817a34.zip hqemu-b21ab1fc217b4a2b8f2f85d16bdd8510a7817a34.tar.gz |
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: Soren Brinkmann <soren.brinkmann@xilinx.com>
Message-id: 1435036655-16132-1-git-send-email-soren.brinkmann@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-arm/helper-a64.c')
-rw-r--r-- | target-arm/helper-a64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-arm/helper-a64.c b/target-arm/helper-a64.c index e30af06..08c95a3 100644 --- a/target-arm/helper-a64.c +++ b/target-arm/helper-a64.c @@ -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; |