diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-17 11:29:52 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-04-20 10:51:11 -0700 |
commit | 8eb806a763f4a804ac80a6d4f4679c60fd66d8fa (patch) | |
tree | a4213aaee91394dd4e8b927aa46d4ad35e28b864 /accel | |
parent | b7a83ff8df76d7f5a4abddcc01d2478f026dc9e8 (diff) | |
download | qemu-8eb806a763f4a804ac80a6d4f4679c60fd66d8fa.zip qemu-8eb806a763f4a804ac80a6d4f4679c60fd66d8fa.tar.gz qemu-8eb806a763f4a804ac80a6d4f4679c60fd66d8fa.tar.bz2 |
exec/translator: Pass the locked filepointer to disas_log hook
We have fetched and locked the logfile in translator_loop.
Pass the filepointer down to the disas_log hook so that it
need not be fetched and locked again.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220417183019.755276-13-richard.henderson@linaro.org>
Diffstat (limited to 'accel')
-rw-r--r-- | accel/tcg/translator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c index af8798f..fe7af9b 100644 --- a/accel/tcg/translator.c +++ b/accel/tcg/translator.c @@ -142,7 +142,7 @@ void translator_loop(const TranslatorOps *ops, DisasContextBase *db, FILE *logfile = qemu_log_trylock(); if (logfile) { fprintf(logfile, "----------------\n"); - ops->disas_log(db, cpu); + ops->disas_log(db, cpu, logfile); fprintf(logfile, "\n"); qemu_log_unlock(logfile); } |