diff options
author | Helge Deller <deller@gmx.de> | 2022-09-18 21:45:49 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2022-09-27 09:29:33 +0200 |
commit | 770525f8eac9a2d048896fd54e4c596af747f238 (patch) | |
tree | d83de7f31ebb2fe62fb5f78d9cdd2a34681800cb | |
parent | 12640b4fe96fe23dc344b03378dda1eea5b7a191 (diff) | |
download | qemu-770525f8eac9a2d048896fd54e4c596af747f238.zip qemu-770525f8eac9a2d048896fd54e4c596af747f238.tar.gz qemu-770525f8eac9a2d048896fd54e4c596af747f238.tar.bz2 |
linux-user/hppa: Dump IIR on register dump
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>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220918194555.83535-7-deller@gmx.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r-- | target/hppa/helper.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/target/hppa/helper.c b/target/hppa/helper.c index e2758d8..74b8747 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' : '-'); |