summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorPeter Maydell2018-05-15 15:58:44 +0200
committerPeter Maydell2018-05-15 15:58:44 +0200
commitae7651804748c6b479d5ae09aeac4edb9c44f76e (patch)
treec68f377430d1a11d50bf05d62c494c7cc0ff47a7 /util
parentsdcard: Correct CRC16 offset in sd_function_switch() (diff)
downloadqemu-ae7651804748c6b479d5ae09aeac4edb9c44f76e.tar.gz
qemu-ae7651804748c6b479d5ae09aeac4edb9c44f76e.tar.xz
qemu-ae7651804748c6b479d5ae09aeac4edb9c44f76e.zip
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. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20180510130024.31678-1-peter.maydell@linaro.org
Diffstat (limited to 'util')
-rw-r--r--util/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/log.c b/util/log.c
index 96f30dd21a..c0dbbd4700 100644
--- a/util/log.c
+++ b/util/log.c
@@ -256,6 +256,8 @@ const QEMULogItem qemu_log_items[] = {
"show trace before each executed TB (lots of logs)" },
{ CPU_LOG_TB_CPU, "cpu",
"show CPU registers before entering a TB (lots of logs)" },
+ { CPU_LOG_TB_FPU, "fpu",
+ "include FPU registers in the 'cpu' logging" },
{ CPU_LOG_MMU, "mmu",
"log MMU-related activities" },
{ CPU_LOG_PCALL, "pcall",