]> git.proxmox.com Git - mirror_qemu.git/blobdiff - linux-user/cpu_loop-common.h
include/exec: typedef abi_ptr to vaddr
[mirror_qemu.git] / linux-user / cpu_loop-common.h
index ffe3fe9ad54f44fe32c0f62ca7e7ca5c3f983230..e644d2ef9096e89466f77b47ae21fc5a632cb70e 100644 (file)
 #define CPU_LOOP_COMMON_H
 
 #include "exec/log.h"
+#include "special-errno.h"
 
-#define EXCP_DUMP(env, fmt, ...)                                        \
-do {                                                                    \
-    CPUState *cs = ENV_GET_CPU(env);                                    \
-    fprintf(stderr, fmt , ## __VA_ARGS__);                              \
-    cpu_dump_state(cs, stderr, fprintf, 0);                             \
-    if (qemu_log_separate()) {                                          \
-        qemu_log(fmt, ## __VA_ARGS__);                                  \
-        log_cpu_state(cs, 0);                                           \
-    }                                                                   \
-} while (0)
+void target_exception_dump(CPUArchState *env, const char *fmt, int code);
+#define EXCP_DUMP(env, fmt, code) \
+    target_exception_dump(env, fmt, code)
 
 void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs);
 #endif