From 3dddb8564fc8c3ed262885158fbfa31496c07d54 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Tue, 15 May 2018 22:31:00 -0400 Subject: [PATCH] tcg: Optionally log FPU state in TCG -d cpu logging Usually the logging of the CPU state produced by -d cpu is sufficient to diagnose problems, but sometimes you want to see the state of the floating point registers as well. We don't want to enable that by default as it adds a lot of extra data to the log; instead, allow it to be optionally enabled via -d fpu. Backports relevant parts of commit ae7651804748c6b479d5ae09aeac4edb9c44f76e from qemu --- qemu/include/qemu/log.h | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu/include/qemu/log.h b/qemu/include/qemu/log.h index 4681b151..637cca38 100644 --- a/qemu/include/qemu/log.h +++ b/qemu/include/qemu/log.h @@ -36,6 +36,7 @@ static inline bool qemu_log_enabled(void) #define CPU_LOG_PAGE (1 << 14) #define LOG_TRACE (1 << 15) #define CPU_LOG_TB_OP_IND (1 << 16) +#define CPU_LOG_TB_FPU (1 << 17) /* Returns true if a bit is set in the current loglevel mask */