diff options
| author | Richard Henderson | 2014-04-08 08:08:47 +0200 |
|---|---|---|
| committer | Richard Henderson | 2014-05-28 18:33:54 +0200 |
| commit | 944eea962be94b98f8f6f570f9c4eb3b58dc296d (patch) | |
| tree | a85e8c2519e6c95a6734904744abd1dd8d8fce65 /include/exec/helper-head.h | |
| parent | tcg: Invert the inclusion of helper.h (diff) | |
| download | qemu-944eea962be94b98f8f6f570f9c4eb3b58dc296d.tar.gz qemu-944eea962be94b98f8f6f570f9c4eb3b58dc296d.tar.xz qemu-944eea962be94b98f8f6f570f9c4eb3b58dc296d.zip | |
tcg: Push tcg-runtime routines into exec/helper-*
Rather than special casing them, use the standard mechanisms
for tcg helper generation.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'include/exec/helper-head.h')
| -rw-r--r-- | include/exec/helper-head.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/exec/helper-head.h b/include/exec/helper-head.h index 2cbae22b5f..0b5bd8398e 100644 --- a/include/exec/helper-head.h +++ b/include/exec/helper-head.h @@ -18,6 +18,8 @@ #ifndef DEF_HELPER_H #define DEF_HELPER_H 1 +#include "qemu/osdep.h" + #define HELPER(name) glue(helper_, name) #define GET_TCGV_i32 GET_TCGV_I32 @@ -32,10 +34,12 @@ #define dh_alias_s64 i64 #define dh_alias_f32 i32 #define dh_alias_f64 i64 -#if TARGET_LONG_BITS == 32 -#define dh_alias_tl i32 -#else -#define dh_alias_tl i64 +#ifdef TARGET_LONG_BITS +# if TARGET_LONG_BITS == 32 +# define dh_alias_tl i32 +# else +# define dh_alias_tl i64 +# endif #endif #define dh_alias_ptr ptr #define dh_alias_void void |
