[PATCH 1/3] target/s390x: Dump Floating-Point-Control Register

Ilya Leoshkevich posted 3 patches 3 days, 11 hours ago
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Ilya Leoshkevich <iii@linux.ibm.com>, David Hildenbrand <david@kernel.org>, Thomas Huth <thuth@redhat.com>
[PATCH 1/3] target/s390x: Dump Floating-Point-Control Register
Posted by Ilya Leoshkevich 3 days, 11 hours ago
Knowing the value of this register is very useful for debugging
floating-point code.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
---
 target/s390x/cpu-dump.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/s390x/cpu-dump.c b/target/s390x/cpu-dump.c
index 869d3a4ad54..5b852928031 100644
--- a/target/s390x/cpu-dump.c
+++ b/target/s390x/cpu-dump.c
@@ -63,6 +63,7 @@ void s390_cpu_dump_state(CPUState *cs, FILE *f, int flags)
                              (i % 4) == 3 ? '\n' : ' ');
             }
         }
+        qemu_fprintf(f, "FPC=%08" PRIx32 "\n", env->fpc);
     }
 
 #ifndef CONFIG_USER_ONLY
-- 
2.52.0
Re: [PATCH 1/3] target/s390x: Dump Floating-Point-Control Register
Posted by Alex Bennée 2 days, 17 hours ago
Ilya Leoshkevich <iii@linux.ibm.com> writes:

> Knowing the value of this register is very useful for debugging
> floating-point code.
>
> Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro