diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-04-02 08:10:46 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-06-05 12:04:29 -0700 |
commit | b78477fe1b22e9171c13a88e86a1e367779beab5 (patch) | |
tree | a64d402d1508d21316f0a59f6425f05b6c095196 /include/exec | |
parent | 649795665f9cb9a8862848f49100c3015f067ccf (diff) | |
download | qemu-b78477fe1b22e9171c13a88e86a1e367779beab5.zip qemu-b78477fe1b22e9171c13a88e86a1e367779beab5.tar.gz qemu-b78477fe1b22e9171c13a88e86a1e367779beab5.tar.bz2 |
tcg: Move env defines out of NEED_CPU_H in helper-head.h
Since the change to CPUArchState, we have a common typedef
that can always be used.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec')
-rw-r--r-- | include/exec/helper-head.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/exec/helper-head.h b/include/exec/helper-head.h index a355ef8..28ceab0 100644 --- a/include/exec/helper-head.h +++ b/include/exec/helper-head.h @@ -22,6 +22,7 @@ #define dh_alias_f64 i64 #define dh_alias_ptr ptr #define dh_alias_cptr ptr +#define dh_alias_env ptr #define dh_alias_void void #define dh_alias_noreturn noreturn #define dh_alias(t) glue(dh_alias_, t) @@ -37,6 +38,7 @@ #define dh_ctype_f64 float64 #define dh_ctype_ptr void * #define dh_ctype_cptr const void * +#define dh_ctype_env CPUArchState * #define dh_ctype_void void #define dh_ctype_noreturn G_NORETURN void #define dh_ctype(t) dh_ctype_##t @@ -52,9 +54,6 @@ # endif # endif # define dh_ctype_tl target_ulong -# define dh_alias_env ptr -# define dh_ctype_env CPUArchState * -# define dh_typecode_env dh_typecode_ptr #endif /* We can't use glue() here because it falls foul of C preprocessor @@ -96,6 +95,7 @@ #define dh_typecode_f32 dh_typecode_i32 #define dh_typecode_f64 dh_typecode_i64 #define dh_typecode_cptr dh_typecode_ptr +#define dh_typecode_env dh_typecode_ptr #define dh_typecode(t) dh_typecode_##t #define dh_callflag_i32 0 |