summaryrefslogtreecommitdiffstats
path: root/accel
diff options
context:
space:
mode:
authorRichard Henderson2022-04-17 20:29:54 +0200
committerRichard Henderson2022-04-20 19:51:11 +0200
commitc769fbd7deca8e47b8b0fd508ba2e5e108c5c5c4 (patch)
tree54beed6d8a0f7aee38f55c6c4a8c46041e2e3a3d /accel
parentexec/log: Remove log_disas and log_target_disas (diff)
downloadqemu-c769fbd7deca8e47b8b0fd508ba2e5e108c5c5c4.tar.gz
qemu-c769fbd7deca8e47b8b0fd508ba2e5e108c5c5c4.tar.xz
qemu-c769fbd7deca8e47b8b0fd508ba2e5e108c5c5c4.zip
accel/tcg: Use cpu_dump_state between qemu_log_trylock/unlock
Inside log_cpu_state, we perform qemu_log_trylock/unlock, which need not be done if we have already performed the lock beforehand. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220417183019.755276-15-richard.henderson@linaro.org>
Diffstat (limited to 'accel')
-rw-r--r--accel/tcg/cpu-exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c
index 8b7f9a3065..635aeecc0a 100644
--- a/accel/tcg/cpu-exec.c
+++ b/accel/tcg/cpu-exec.c
@@ -224,7 +224,7 @@ static inline void log_cpu_exec(target_ulong pc, CPUState *cpu,
#if defined(TARGET_I386)
flags |= CPU_DUMP_CCOP;
#endif
- log_cpu_state(cpu, flags);
+ cpu_dump_state(cpu, logfile, flags);
qemu_log_unlock(logfile);
}
}