cpu: Introduce ENV_OFFSET macros
authorAndreas Färber <afaerber@suse.de>
Fri, 22 Feb 2013 18:10:01 +0000 (18:10 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 3 Mar 2013 14:28:28 +0000 (14:28 +0000)
commitfadf982584b040527aeee0ede270a4d01463d293
treede8d94b847354eced90a266fa7dc3164ad897fde
parent0980011b4f66482d2733ab2dd0f2f61747772c6b
cpu: Introduce ENV_OFFSET macros

Introduce ENV_OFFSET macros which can be used in non-target-specific
code that needs to generate TCG instructions which reference CPUState
fields given the cpu_env register that TCG targets set up with a
pointer to the CPUArchState struct.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
15 files changed:
target-alpha/cpu-qom.h
target-arm/cpu-qom.h
target-cris/cpu-qom.h
target-i386/cpu-qom.h
target-lm32/cpu-qom.h
target-m68k/cpu-qom.h
target-microblaze/cpu-qom.h
target-mips/cpu-qom.h
target-openrisc/cpu.h
target-ppc/cpu-qom.h
target-s390x/cpu-qom.h
target-sh4/cpu-qom.h
target-sparc/cpu-qom.h
target-unicore32/cpu-qom.h
target-xtensa/cpu-qom.h