]> git.proxmox.com Git - mirror_qemu.git/commit - target-ppc/translate_init.c
cpu: Add CPUArchState pointer to CPUState
authorAndreas Färber <afaerber@suse.de>
Thu, 17 Jan 2013 11:13:41 +0000 (12:13 +0100)
committerAndreas Färber <afaerber@suse.de>
Sat, 16 Feb 2013 13:51:00 +0000 (14:51 +0100)
commitc05efcb18ee30cdf2b00b3512aa0f5233b52911f
tree4d51c9851f304e7867b10877340914bf23c0fb59
parent907a5e32f293a0af8875973d4cce12b96bea5bae
cpu: Add CPUArchState pointer to CPUState

The target-specific ENV_GET_CPU() macros have allowed us to navigate
from CPUArchState to CPUState. The reverse direction was not supported.
Avoid introducing CPU_GET_ENV() macros by initializing an untyped
pointer that is initialized in derived instance_init functions.

The field may not be called "env" due to it being poisoned.

Acked-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andreas Färber <afaerber@suse.de>
16 files changed:
include/qom/cpu.h
target-alpha/cpu.c
target-arm/cpu.c
target-cris/cpu.c
target-i386/cpu.c
target-lm32/cpu.c
target-m68k/cpu.c
target-microblaze/cpu.c
target-mips/cpu.c
target-openrisc/cpu.c
target-ppc/translate_init.c
target-s390x/cpu.c
target-sh4/cpu.c
target-sparc/cpu.c
target-unicore32/cpu.c
target-xtensa/cpu.c