From fa908ea3d334edc171863aa2f034d650b6a724a7 Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Thu, 15 Feb 2018 11:16:50 -0500 Subject: [PATCH] target-arm: Log the target EL when taking exceptions Log the target EL when taking exceptions. This is useful when debugging guest SW or QEMU itself while transitioning through the various ELs. Backports commit dbc29a868cf5b7e6fa7bb2e6c4f188b9470779c5 from qemu --- qemu/target-arm/helper-a64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qemu/target-arm/helper-a64.c b/qemu/target-arm/helper-a64.c index fc25d215..ecdd49de 100644 --- a/qemu/target-arm/helper-a64.c +++ b/qemu/target-arm/helper-a64.c @@ -534,7 +534,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",