]> git.proxmox.com Git - mirror_qemu.git/commit - cpu-exec.c
cpu-exec: Purge all uses of ENV_GET_CPU()
authorPeter Crosthwaite <crosthwaitepeter@gmail.com>
Thu, 18 Jun 2015 17:24:55 +0000 (10:24 -0700)
committerAndreas Färber <afaerber@suse.de>
Thu, 9 Jul 2015 13:20:40 +0000 (15:20 +0200)
commitea3e9847408131abc840240bd61e892d28459452
treec0406bdfc85a826a63430162127841fcd38373e7
parent4bad9e392e788a218967167a38ce2ae7a32a6231
cpu-exec: Purge all uses of ENV_GET_CPU()

Remove un-needed usages of ENV_GET_CPU() by converting the APIs to use
CPUState pointers and retrieving the env_ptr as minimally needed.

Scripted conversion for target-* change:

for I in target-*/cpu.h; do
    sed -i \
    's/\(^int cpu_[^_]*_exec(\)[^ ][^ ]* \*s);$/\1CPUState *cpu);/' \
    $I;
done

Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
21 files changed:
bsd-user/main.c
cpu-exec.c
cpus.c
linux-user/main.c
target-alpha/cpu.h
target-arm/cpu.h
target-cris/cpu.h
target-i386/cpu.h
target-lm32/cpu.h
target-m68k/cpu.h
target-microblaze/cpu.h
target-mips/cpu.h
target-moxie/cpu.h
target-openrisc/cpu.h
target-ppc/cpu.h
target-s390x/cpu.h
target-sh4/cpu.h
target-sparc/cpu.h
target-tricore/cpu.h
target-unicore32/cpu.h
target-xtensa/cpu.h