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>
This commit is contained in:
Richard Henderson 2018-05-10 20:42:10 -07:00
parent af6e5ea28f
commit d13c394c75

View File

@ -647,6 +647,7 @@ void sparc_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,
} }
} }
if (flags & CPU_DUMP_FPU) {
for (i = 0; i < TARGET_DPREGS; i++) { for (i = 0; i < TARGET_DPREGS; i++) {
if ((i & 3) == 0) { if ((i & 3) == 0) {
cpu_fprintf(f, "%%f%02d: ", i * 2); cpu_fprintf(f, "%%f%02d: ", i * 2);
@ -656,6 +657,8 @@ void sparc_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,
cpu_fprintf(f, "\n"); cpu_fprintf(f, "\n");
} }
} }
}
#ifdef TARGET_SPARC64 #ifdef TARGET_SPARC64
cpu_fprintf(f, "pstate: %08x ccr: %02x (icc: ", env->pstate, cpu_fprintf(f, "pstate: %08x ccr: %02x (icc: ", env->pstate,
(unsigned)cpu_get_ccr(env)); (unsigned)cpu_get_ccr(env));