In some cases it's pretty easy to avoid using global cpu_single_env since a local version is available.
Blue Swirl (5): disas: avoid using cpu_single_env kvm: avoid using cpu_single_env target-unicore32: avoid using cpu_single_env target-xtensa: avoid using cpu_single_env target-i386: avoid using cpu_single_env disas.c | 149 ++++++++------- disas.h | 3 +- qemu-log.h | 6 +- target-alpha/translate.c | 2 +- target-arm/translate.c | 2 +- target-cris/translate.c | 2 +- target-i386/kvm.c | 21 +- target-i386/translate.c | 442 +++++++++++++++++++++-------------------- target-lm32/translate.c | 2 +- target-m68k/translate.c | 2 +- target-microblaze/translate.c | 2 +- target-mips/translate.c | 2 +- target-openrisc/translate.c | 2 +- target-ppc/translate.c | 2 +- target-s390x/translate.c | 2 +- target-sh4/translate.c | 2 +- target-sparc/translate.c | 2 +- target-unicore32/softmmu.c | 8 +- target-unicore32/translate.c | 2 +- target-xtensa/translate.c | 10 +- 20 files changed, 342 insertions(+), 323 deletions(-) -- 1.7.2.5