]> git.ipfire.org Git - thirdparty/qemu.git/commit - target-sparc/translate.c
tcg: Add type for vCPU pointers
authorLluís Vilanova <vilanova@ac.upc.edu>
Thu, 25 Feb 2016 16:43:15 +0000 (17:43 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 1 Mar 2016 13:27:09 +0000 (13:27 +0000)
commit1bcea73e13b2b059d0cb3301aeaca43e5656ef57
tree9251e3695700e6f5edff2293546365159b2b5ac8
parent56797b1fbce86b3844cec753100a7260b9132a6e
tcg: Add type for vCPU pointers

Adds the 'TCGv_env' type for pointers to 'CPUArchState' objects. The
tracing infrastructure later needs to differentiate between regular
pointers and pointers to vCPUs.

Also changes all targets to use the new 'TCGv_env' type instead of the
generic 'TCGv_ptr'. As of now, the change is merely cosmetic ('TCGv_env'
translates into 'TCGv_ptr'), but that could change in the future to
enforce the difference.

Note that a 'TCGv_env' type (for 'CPUState') is not added, since all
helpers currently receive the architecture-specific
pointer ('CPUArchState').

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Acked-by: Richard Henderson <rth@twiddle.net>
Message-id: 145641859552.30295.7821536833590725201.stgit@localhost
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
20 files changed:
target-alpha/translate.c
target-arm/translate.c
target-arm/translate.h
target-cris/translate.c
target-i386/translate.c
target-lm32/translate.c
target-m68k/translate.c
target-microblaze/translate.c
target-mips/translate.c
target-moxie/translate.c
target-openrisc/translate.c
target-ppc/translate.c
target-s390x/translate.c
target-sh4/translate.c
target-sparc/translate.c
target-tilegx/translate.c
target-tricore/translate.c
target-unicore32/translate.c
target-xtensa/translate.c
tcg/tcg.h