Quit if no log file is defined.
Signed-off-by: Fabien Chouteau <[email protected]>
---
target-ppc/translate.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index cf59765..f17bd91 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -9319,6 +9319,10 @@ void cpu_dump_state (CPUPPCState *env, FILE *f,
fprintf_function cpu_fprintf,
int i;
+ if (f == NULL) {
+ return;
+ }
+
cpu_synchronize_state(env);
cpu_fprintf(f, "NIP " TARGET_FMT_lx " LR " TARGET_FMT_lx " CTR "
--
1.7.9.5