mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
disas: avoid using cpu_single_env
Pass around CPUArchState instead of using global cpu_single_env. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> Acked-by: Richard Henderson <rth@twiddle.net> Acked-by: Aurelien Jarno <aurelien@aurel32.net> Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
This commit is contained in:
parent
036208c9ab
commit
f4359b9ffe
17 changed files with 100 additions and 86 deletions
|
@ -84,10 +84,10 @@ static inline void log_cpu_state_mask(int mask, CPUArchState *env1, int flags)
|
|||
}
|
||||
|
||||
/* disas() and target_disas() to qemu_logfile: */
|
||||
static inline void log_target_disas(target_ulong start, target_ulong len,
|
||||
int flags)
|
||||
static inline void log_target_disas(CPUArchState *env, target_ulong start,
|
||||
target_ulong len, int flags)
|
||||
{
|
||||
target_disas(qemu_logfile, start, len, flags);
|
||||
target_disas(qemu_logfile, env, start, len, flags);
|
||||
}
|
||||
|
||||
static inline void log_disas(void *code, unsigned long size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue