Message ID | 20180511035240.4016-9-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | Honor CPU_DUMP_FPU | expand |
On 05/11/2018 12:52 AM, Richard Henderson wrote: > Cc: Guan Xuetao <gxt@mprc.pku.edu.cn> > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> > --- > target/unicore32/translate.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/target/unicore32/translate.c b/target/unicore32/translate.c > index 5b51f2166d..63619e7d2c 100644 > --- a/target/unicore32/translate.c > +++ b/target/unicore32/translate.c > @@ -2101,7 +2101,9 @@ void uc32_cpu_dump_state(CPUState *cs, FILE *f, > psr & (1 << 28) ? 'V' : '-', > cpu_mode_names[psr & 0xf]); > > - cpu_dump_state_ucf64(env, f, cpu_fprintf, flags); > + if (flags & CPU_DUMP_FPU) { > + cpu_dump_state_ucf64(env, f, cpu_fprintf, flags); > + } > } > > void restore_state_to_opc(CPUUniCore32State *env, TranslationBlock *tb, >
diff --git a/target/unicore32/translate.c b/target/unicore32/translate.c index 5b51f2166d..63619e7d2c 100644 --- a/target/unicore32/translate.c +++ b/target/unicore32/translate.c @@ -2101,7 +2101,9 @@ void uc32_cpu_dump_state(CPUState *cs, FILE *f, psr & (1 << 28) ? 'V' : '-', cpu_mode_names[psr & 0xf]); - cpu_dump_state_ucf64(env, f, cpu_fprintf, flags); + if (flags & CPU_DUMP_FPU) { + cpu_dump_state_ucf64(env, f, cpu_fprintf, flags); + } } void restore_state_to_opc(CPUUniCore32State *env, TranslationBlock *tb,
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/unicore32/translate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.0