diff options
author | Richard Henderson | 2022-04-17 20:29:52 +0200 |
---|---|---|
committer | Richard Henderson | 2022-04-20 19:51:11 +0200 |
commit | 8eb806a763f4a804ac80a6d4f4679c60fd66d8fa (patch) | |
tree | a4213aaee91394dd4e8b927aa46d4ad35e28b864 /target/rx | |
parent | tcg: Pass the locked filepointer to tcg_dump_ops (diff) | |
download | qemu-8eb806a763f4a804ac80a6d4f4679c60fd66d8fa.tar.gz qemu-8eb806a763f4a804ac80a6d4f4679c60fd66d8fa.tar.xz qemu-8eb806a763f4a804ac80a6d4f4679c60fd66d8fa.zip |
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 'target/rx')
-rw-r--r-- | target/rx/translate.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/target/rx/translate.c b/target/rx/translate.c index 5db8f79a82..c8a8991a63 100644 --- a/target/rx/translate.c +++ b/target/rx/translate.c @@ -2342,10 +2342,11 @@ static void rx_tr_tb_stop(DisasContextBase *dcbase, CPUState *cs) } } -static void rx_tr_disas_log(const DisasContextBase *dcbase, CPUState *cs) +static void rx_tr_disas_log(const DisasContextBase *dcbase, + CPUState *cs, FILE *logfile) { - qemu_log("IN:\n"); /* , lookup_symbol(dcbase->pc_first)); */ - log_target_disas(cs, dcbase->pc_first, dcbase->tb->size); + fprintf(logfile, "IN: %s\n", lookup_symbol(dcbase->pc_first)); + target_disas(logfile, cs, dcbase->pc_first, dcbase->tb->size); } static const TranslatorOps rx_tr_ops = { |