Received: from eggs.gnu.org ([2001:4830:134:3::10]:48669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7GbH-0001Cj-F9 for qemu-devel@nongnu.org; Tue, 23 Jun 2015 01:18:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7GbC-0003Vu-AL for qemu-devel@nongnu.org; Tue, 23 Jun 2015 01:18:23 -0400 Received: from mail-bn1bon0062.outbound.protection.outlook.com ([157.56.111.62]:5021 helo=na01-bn1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7GbC-0003Va-33 for qemu-devel@nongnu.org; Tue, 23 Jun 2015 01:18:18 -0400 From: Soren Brinkmann Date: Mon, 22 Jun 2015 22:17:35 -0700 Message-ID: <1435036655-16132-1-git-send-email-soren.brinkmann@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH QEMU] target-arm: A64: Print ELR when taking exceptions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org, Soren Brinkmann 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 --- target-arm/helper-a64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-arm/helper-a64.c b/target-arm/helper-a64.c index e30af0659e29..08c95a3f5202 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; -- 2.4.4.3.gd756881