[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 06/12] linux-user/hppa: Dump IIR on register dump
From: |
Helge Deller |
Subject: |
[PULL 06/12] linux-user/hppa: Dump IIR on register dump |
Date: |
Tue, 13 Sep 2022 21:13:15 +0200 |
Include the IIR register (which holds the opcode of the failing
instruction) when dumping the hppa registers.
Signed-off-by: Helge Deller <deller@gmx.de>
---
target/hppa/helper.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/target/hppa/helper.c b/target/hppa/helper.c
index e2758d8df3..74b8747083 100644
--- a/target/hppa/helper.c
+++ b/target/hppa/helper.c
@@ -85,9 +85,11 @@ void hppa_cpu_dump_state(CPUState *cs, FILE *f, int flags)
char psw_c[20];
int i;
- qemu_fprintf(f, "IA_F " TARGET_FMT_lx " IA_B " TARGET_FMT_lx "\n",
+ qemu_fprintf(f, "IA_F " TARGET_FMT_lx " IA_B " TARGET_FMT_lx
+ " IIR " TREG_FMT_lx "\n",
hppa_form_gva_psw(psw, env->iasq_f, env->iaoq_f),
- hppa_form_gva_psw(psw, env->iasq_b, env->iaoq_b));
+ hppa_form_gva_psw(psw, env->iasq_b, env->iaoq_b),
+ env->cr[CR_IIR]);
psw_c[0] = (psw & PSW_W ? 'W' : '-');
psw_c[1] = (psw & PSW_E ? 'E' : '-');
--
2.37.2
- [PULL 00/12] linux-user patches, Helge Deller, 2022/09/13
- [PULL 06/12] linux-user/hppa: Dump IIR on register dump,
Helge Deller <=
- [PULL 12/12] linux-user: Add parameters of getrandom() syscall for strace, Helge Deller, 2022/09/13
- [PULL 05/12] linux-user/hppa: Use EXCP_DUMP() to show enhanced debug info, Helge Deller, 2022/09/13
- [PULL 09/12] linux-user: Add strace for clock_nanosleep(), Helge Deller, 2022/09/13
- [PULL 10/12] linux-user: Show timespec on strace for futex(), Helge Deller, 2022/09/13
- [PULL 11/12] linux-user: Add close_range() syscall, Helge Deller, 2022/09/13
- [PULL 03/12] linux-user: Add pidfd_open(), pidfd_send_signal() and pidfd_getfd() syscalls, Helge Deller, 2022/09/13
- [PULL 01/12] linux-user: Add missing signals in strace output, Helge Deller, 2022/09/13
- [PULL 02/12] linux-user: Add missing clock_gettime64() syscall strace, Helge Deller, 2022/09/13
- [PULL 07/12] linux-user: Fix strace of chmod() if mode == 0, Helge Deller, 2022/09/13
- [PULL 04/12] linux-user: Log failing executable in EXCP_DUMP(), Helge Deller, 2022/09/13