summary refs log tree commit diff stats
path: root/qemu-log.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-log.h')
-rw-r--r--qemu-log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu-log.h b/qemu-log.h
index fccfb1100e..a9b3ca4e0b 100644
--- a/qemu-log.h
+++ b/qemu-log.h
@@ -50,6 +50,7 @@ extern int loglevel;
 
 /* Special cases: */
 
+#ifdef NEED_CPU_H
 /* cpu_dump_state() logging functions: */
 #define log_cpu_state(env, f) cpu_dump_state((env), logfile, fprintf, (f));
 #define log_cpu_state_mask(b, env, f) do {           \
@@ -64,6 +65,7 @@ extern int loglevel;
 
 /* page_dump() output to the log file: */
 #define log_page_dump() page_dump(logfile)
+#endif