From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXau7-0000V4-55 for qemu-devel@nongnu.org; Thu, 03 Sep 2015 16:14:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXau6-0006pA-8O for qemu-devel@nongnu.org; Thu, 03 Sep 2015 16:14:39 -0400 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:33113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXau6-0006ox-2T for qemu-devel@nongnu.org; Thu, 03 Sep 2015 16:14:38 -0400 Received: by pacex6 with SMTP id ex6so639667pac.0 for ; Thu, 03 Sep 2015 13:14:37 -0700 (PDT) From: "Edgar E. Iglesias" Date: Thu, 3 Sep 2015 22:14:17 +0200 Message-Id: <1441311266-8644-2-git-send-email-edgar.iglesias@gmail.com> In-Reply-To: <1441311266-8644-1-git-send-email-edgar.iglesias@gmail.com> References: <1441311266-8644-1-git-send-email-edgar.iglesias@gmail.com> Subject: [Qemu-devel] [PATCH v1 01/10] target-arm: Log the target EL when taking exceptions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, peter.maydell@linaro.org Cc: edgar.iglesias@xilinx.com, serge.fdrv@gmail.com, alex.bennee@linaro.org, agraf@suse.de From: "Edgar E. Iglesias" 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 --- target-arm/helper-a64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target-arm/helper-a64.c b/target-arm/helper-a64.c index 08c95a3..2e5e356 100644 --- a/target-arm/helper-a64.c +++ b/target-arm/helper-a64.c @@ -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", -- 1.9.1