]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/s390x: Dump Floating-Point-Control Register
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 10 Feb 2026 21:39:00 +0000 (22:39 +0100)
committerThomas Huth <thuth@redhat.com>
Thu, 12 Feb 2026 07:43:13 +0000 (08:43 +0100)
Knowing the value of this register is very useful for debugging
floating-point code.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20260210214044.1174699-2-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/cpu-dump.c

index 869d3a4ad54f06ed3838ff53e045661f8713c70f..5b8529280317c81e50a179bb7da6cfe17161f9b1 100644 (file)
@@ -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