]> git.proxmox.com Git - mirror_qemu.git/commit - tcg/tcg.c
qemu_log_lock/unlock now preserves the qemu_logfile handle.
authorRobert Foley <robert.foley@linaro.org>
Mon, 18 Nov 2019 21:15:26 +0000 (16:15 -0500)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 18 Dec 2019 20:18:02 +0000 (20:18 +0000)
commitfc59d2d870caddf5cd9c85836ee4a8c59ffe7617
treebb6cf999b19d14bac59b5d789e7e0969c4dea091
parentb8121fe7c005dc3d56e82a0a5ce00563a5fd49d0
qemu_log_lock/unlock now preserves the qemu_logfile handle.

qemu_log_lock() now returns a handle and qemu_log_unlock() receives a
handle to unlock.  This allows for changing the handle during logging
and ensures the lock() and unlock() are for the same file.

Also in target/tilegx/translate.c removed the qemu_log_lock()/unlock()
calls (and the log("\n")), since the translator can longjmp out of the
loop if it attempts to translate an instruction in an inaccessible page.

Signed-off-by: Robert Foley <robert.foley@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20191118211528.3221-5-robert.foley@linaro.org>
15 files changed:
accel/tcg/cpu-exec.c
accel/tcg/translate-all.c
accel/tcg/translator.c
exec.c
hw/net/can/can_sja1000.c
include/qemu/log.h
net/can/can_socketcan.c
target/cris/translate.c
target/i386/translate.c
target/lm32/translate.c
target/microblaze/translate.c
target/nios2/translate.c
target/tilegx/translate.c
target/unicore32/translate.c
tcg/tcg.c