summaryrefslogtreecommitdiffstats
path: root/tcg
diff options
context:
space:
mode:
authorLluís Vilanova <vilanova@ac.upc.edu>2016-02-25 17:43:15 +0100
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:49:12 -0600
commit51cda9ce1457df8ac06d771f094e43de96775895 (patch)
tree3e7a95c997dacdeb77285f7e87ebb8ae86454b1d /tcg
parent51a2e012dd60539614e31efd3446eeeaf4fb9b57 (diff)
downloadhqemu-51cda9ce1457df8ac06d771f094e43de96775895.zip
hqemu-51cda9ce1457df8ac06d771f094e43de96775895.tar.gz
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>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcg/tcg.h b/tcg/tcg.h
index 80cc4e0..f232397 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -309,6 +309,7 @@ typedef tcg_target_ulong TCGArg;
typedef struct TCGv_i32_d *TCGv_i32;
typedef struct TCGv_i64_d *TCGv_i64;
typedef struct TCGv_ptr_d *TCGv_ptr;
+typedef TCGv_ptr TCGv_env;
static inline TCGv_i32 QEMU_ARTIFICIAL MAKE_TCGV_I32(intptr_t i)
{
OpenPOWER on IntegriCloud