diff options
author | Alex Bennée | 2020-05-13 19:51:32 +0200 |
---|---|---|
committer | Alex Bennée | 2020-05-15 16:25:16 +0200 |
commit | e5ef4ec28b801155e20fdb3a4cd21920ffc5f1af (patch) | |
tree | 43293a021a65ce37609a8a099af3230de37ecc1e /include/exec/log.h | |
parent | accel/tcg: don't disable exec_tb trace events (diff) | |
download | qemu-e5ef4ec28b801155e20fdb3a4cd21920ffc5f1af.tar.gz qemu-e5ef4ec28b801155e20fdb3a4cd21920ffc5f1af.tar.xz qemu-e5ef4ec28b801155e20fdb3a4cd21920ffc5f1af.zip |
disas: include an optional note for the start of disassembly
This will become useful shortly for providing more information about
output assembly inline. While there fix up the indenting and code
formatting in disas().
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200513175134.19619-9-alex.bennee@linaro.org>
Diffstat (limited to 'include/exec/log.h')
-rw-r--r-- | include/exec/log.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/exec/log.h b/include/exec/log.h index fcc7b9e00b..3ed797c1c8 100644 --- a/include/exec/log.h +++ b/include/exec/log.h @@ -56,13 +56,13 @@ static inline void log_target_disas(CPUState *cpu, target_ulong start, rcu_read_unlock(); } -static inline void log_disas(void *code, unsigned long size) +static inline void log_disas(void *code, unsigned long size, const char *note) { QemuLogFile *logfile; rcu_read_lock(); logfile = atomic_rcu_read(&qemu_logfile); if (logfile) { - disas(logfile->fd, code, size); + disas(logfile->fd, code, size, note); } rcu_read_unlock(); } |