Skip to content

Commit

Permalink
target-arm: Log the target EL when taking exceptions
Browse files Browse the repository at this point in the history
Log the target EL when taking exceptions. This is useful when
debugging guest SW or QEMU itself while transitioning through
the various ELs.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Message-id: 1441311266-8644-2-git-send-email-edgar.iglesias@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
edgarigl authored and pm215 committed Sep 8, 2015
1 parent cef9ee7 commit dbc29a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion target-arm/helper-a64.c
Expand Up @@ -478,7 +478,8 @@ void aarch64_cpu_do_interrupt(CPUState *cs)
}

arm_log_exception(cs->exception_index);
qemu_log_mask(CPU_LOG_INT, "...from EL%d\n", arm_current_el(env));
qemu_log_mask(CPU_LOG_INT, "...from EL%d to EL%d\n", arm_current_el(env),
new_el);
if (qemu_loglevel_mask(CPU_LOG_INT)
&& !excp_is_internal(cs->exception_index)) {
qemu_log_mask(CPU_LOG_INT, "...with ESR 0x%" PRIx32 "\n",
Expand Down

0 comments on commit dbc29a8

Please sign in to comment.