aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2018-05-10 20:42:10 -0700
committerRichard Henderson <richard.henderson@linaro.org>2018-05-18 14:52:38 -0700
commitd13c394c754cd7d3c86a8968885ad6394d8d69ff (patch)
tree8d421dd29a8cdff13c5306614a089ea023fa23df
parentaf6e5ea28f0b59097a1215e8d063acbb71361b37 (diff)
downloadqemu-d13c394c754cd7d3c86a8968885ad6394d8d69ff.zip
qemu-d13c394c754cd7d3c86a8968885ad6394d8d69ff.tar.gz
qemu-d13c394c754cd7d3c86a8968885ad6394d8d69ff.tar.bz2
target/sparc: Honor CPU_DUMP_FPU
Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Cc: Artyom Tarasenko <atar4qemu@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--target/sparc/cpu.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c
index ff6ed91..0f090ec 100644
--- a/target/sparc/cpu.c
+++ b/target/sparc/cpu.c
@@ -647,15 +647,18 @@ void sparc_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,
}
}
- for (i = 0; i < TARGET_DPREGS; i++) {
- if ((i & 3) == 0) {
- cpu_fprintf(f, "%%f%02d: ", i * 2);
- }
- cpu_fprintf(f, " %016" PRIx64, env->fpr[i].ll);
- if ((i & 3) == 3) {
- cpu_fprintf(f, "\n");
+ if (flags & CPU_DUMP_FPU) {
+ for (i = 0; i < TARGET_DPREGS; i++) {
+ if ((i & 3) == 0) {
+ cpu_fprintf(f, "%%f%02d: ", i * 2);
+ }
+ cpu_fprintf(f, " %016" PRIx64, env->fpr[i].ll);
+ if ((i & 3) == 3) {
+ cpu_fprintf(f, "\n");
+ }
}
}
+
#ifdef TARGET_SPARC64
cpu_fprintf(f, "pstate: %08x ccr: %02x (icc: ", env->pstate,
(unsigned)cpu_get_ccr(env));