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

Ilya Leoshkevich posted 5 patches 1 week, 2 days ago
Maintainers: Aurelien Jarno <aurelien@aurel32.net>, Peter Maydell <peter.maydell@linaro.org>, "Alex Bennée" <alex.bennee@linaro.org>, Richard Henderson <richard.henderson@linaro.org>, Ilya Leoshkevich <iii@linux.ibm.com>, David Hildenbrand <david@kernel.org>, Thomas Huth <thuth@redhat.com>
There is a newer version of this series
[PATCH v3 1/5] target/s390x: Dump Floating-Point-Control Register
Posted by Ilya Leoshkevich 1 week, 2 days ago
Knowing the value of this register is very useful for debugging
floating-point code.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
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 v3 1/5] target/s390x: Dump Floating-Point-Control Register
Posted by Thomas Huth 1 week, 1 day ago
On 29/01/2026 19.57, Ilya Leoshkevich wrote:
> Knowing the value of this register is very useful for debugging
> floating-point code.
> 
> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> 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);
>       }

Reviewed-by: Thomas Huth <thuth@redhat.com>