Message ID | 1462392752-17703-20-git-send-email-laurent@vivier.eu (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 05/04/2016 10:11 AM, Laurent Vivier wrote: > From: Andreas Schwab <schwab@linux-m68k.org> > > Signed-off-by: Andreas Schwab <schwab@linux-m68k.org> > Signed-off-by: Laurent Vivier <laurent@vivier.eu> > --- > target-m68k/translate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Richard Henderson <rth@twiddle.net> r~
Laurent Vivier <laurent@vivier.eu> writes: > From: Andreas Schwab <schwab@linux-m68k.org> > > Signed-off-by: Andreas Schwab <schwab@linux-m68k.org> > Signed-off-by: Laurent Vivier <laurent@vivier.eu> > --- > target-m68k/translate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/target-m68k/translate.c b/target-m68k/translate.c > index ddc3100..37c1b95 100644 > --- a/target-m68k/translate.c > +++ b/target-m68k/translate.c > @@ -3142,7 +3142,7 @@ void m68k_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, > } > cpu_fprintf (f, "PC = %08x ", env->pc); > sr = env->sr | cpu_m68k_get_ccr(env); > - cpu_fprintf (f, "SR = %04x %c%c%c%c%c ", sr, (sr & CCF_X) ? 'X' : '-', > + cpu_fprintf (f, "SR = %04x %c%c%c%c%c\n", sr, (sr & CCF_X) ? 'X' : '-', > (sr & CCF_N) ? 'N' : '-', (sr & CCF_Z) ? 'Z' : '-', > (sr & CCF_V) ? 'V' : '-', (sr & CCF_C) ? 'C' : '-'); > cpu_fprintf (f, "FPRESULT = %12g\n", *(double *)&env->fp_result); This is only useful in the context of the FPU patches which remove the last line. Andreas.
diff --git a/target-m68k/translate.c b/target-m68k/translate.c index ddc3100..37c1b95 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -3142,7 +3142,7 @@ void m68k_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, } cpu_fprintf (f, "PC = %08x ", env->pc); sr = env->sr | cpu_m68k_get_ccr(env); - cpu_fprintf (f, "SR = %04x %c%c%c%c%c ", sr, (sr & CCF_X) ? 'X' : '-', + cpu_fprintf (f, "SR = %04x %c%c%c%c%c\n", sr, (sr & CCF_X) ? 'X' : '-', (sr & CCF_N) ? 'N' : '-', (sr & CCF_Z) ? 'Z' : '-', (sr & CCF_V) ? 'V' : '-', (sr & CCF_C) ? 'C' : '-'); cpu_fprintf (f, "FPRESULT = %12g\n", *(double *)&env->fp_result);