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
This commit is contained in:
Peter Maydell 2018-05-15 22:31:00 -04:00 committed by Lioncash
parent 070276faf6
commit 3dddb8564f
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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
*/