diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-09-08 12:40:00 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-11-10 13:49:20 +0000 |
commit | f4359b9ffe895fda6d1ec3dd441cb8a208fb4dce (patch) | |
tree | 4a7079ca55c6beb87f25b7bc449a9e1a67c68e51 /disas.h | |
parent | 036208c9ab50b0910c24b28a440c15e66e8a2652 (diff) |
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>
Diffstat (limited to 'disas.h')
-rw-r--r-- | disas.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -6,7 +6,8 @@ #ifdef NEED_CPU_H /* Disassemble this for me please... (debugging). */ void disas(FILE *out, void *code, unsigned long size); -void target_disas(FILE *out, target_ulong code, target_ulong size, int flags); +void target_disas(FILE *out, CPUArchState *env, target_ulong code, + target_ulong size, int flags); void monitor_disas(Monitor *mon, CPUArchState *env, target_ulong pc, int nb_insn, int is_physical, int flags); |