From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PULL 4/7] target-arm: A64: Print ELR when taking exceptions
Date: Fri, 26 Jun 2015 14:31:20 +0100 [thread overview]
Message-ID: <1435325484-20208-5-git-send-email-peter.maydell@linaro.org> (raw)
In-Reply-To: <1435325484-20208-1-git-send-email-peter.maydell@linaro.org>
From: Soren Brinkmann <soren.brinkmann@xilinx.com>
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>
---
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 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;
--
1.9.1
next prev parent reply other threads:[~2015-06-26 13:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-26 13:31 [Qemu-devel] [PULL 0/7] target-arm queue Peter Maydell
2015-06-26 13:31 ` [Qemu-devel] [PULL 1/7] hw/arm/virt-acpi-build: Fix table revision and some comments Peter Maydell
2015-06-26 13:31 ` [Qemu-devel] [PULL 2/7] hw/arm/virt-acpi-build: Add GICv2m description in ACPI MADT table Peter Maydell
2015-06-26 13:31 ` [Qemu-devel] [PULL 3/7] target-arm: default empty semihosting cmdline Peter Maydell
2015-06-26 13:31 ` Peter Maydell [this message]
2015-06-26 13:31 ` [Qemu-devel] [PULL 5/7] qdev-properties-system: Change set_pointer's parse callback to use Error Peter Maydell
2015-06-26 13:31 ` [Qemu-devel] [PULL 6/7] qdev-properties-system: Improve error message for drive assignment conflict Peter Maydell
2015-06-26 13:31 ` [Qemu-devel] [PULL 7/7] hw/arm/virt: Make block devices default to virtio Peter Maydell
2015-06-26 14:57 ` [Qemu-devel] [PULL 0/7] target-arm queue Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435325484-20208-5-git-send-email-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).