qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 13/31] target-i386/op_helper.c: LOG_PCALL_STATE macr


From: Eduardo Habkost
Subject: [Qemu-devel] [PATCH 13/31] target-i386/op_helper.c: LOG_PCALL_STATE macro
Date: Fri, 12 Dec 2008 13:08:52 -0200

To be used for the cpu_dump_state() calls inside debugging #ifdefs.

Signed-off-by: Eduardo Habkost <address@hidden>
---
 target-i386/op_helper.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c
index 7c38d9c..5c4287c 100644
--- a/target-i386/op_helper.c
+++ b/target-i386/op_helper.c
@@ -29,8 +29,13 @@
      if (loglevel & CPU_LOG_PCALL)       \
        fprintf(logfile, ## __VA_ARGS__); \
    } while (0)
+#  define LOG_PCALL_STATE(env) do {                             \
+    if (loglevel & CPU_LOG_PCALL)                               \
+        cpu_dump_state((env), logfile, fprintf, X86_DUMP_CCOP); \
+   } while (0)
 #else
 #  define LOG_PCALL(...) do { } while (0)
+#  define LOG_PCALL_STATE(env) do { } while (0)
 #endif
 
 
-- 
1.5.5.GIT





reply via email to

[Prev in Thread] Current Thread [Next in Thread]