diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-05-01 10:57:11 +0100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-06-05 12:04:28 -0700 |
commit | d46259c037e51fb6516199305fe8f0994df3d46e (patch) | |
tree | 4a2cedcb5ce045685b565a0947f5dbb479556c07 /include/tcg/tcg.h | |
parent | e5b490637708a688e303a51d47fea3bd14ec98f6 (diff) | |
download | qemu-d46259c037e51fb6516199305fe8f0994df3d46e.zip qemu-d46259c037e51fb6516199305fe8f0994df3d46e.tar.gz qemu-d46259c037e51fb6516199305fe8f0994df3d46e.tar.bz2 |
tcg: Split out tcg-target-reg-bits.h
Often, the only thing we need to know about the TCG host
is the register size.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/tcg/tcg.h')
-rw-r--r-- | include/tcg/tcg.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index 54f260a..5fe90cb 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -32,6 +32,7 @@ #include "qemu/plugin.h" #include "qemu/queue.h" #include "tcg/tcg-mo.h" +#include "tcg-target-reg-bits.h" #include "tcg-target.h" #include "tcg/tcg-cond.h" #include "tcg/debug-assert.h" @@ -44,17 +45,6 @@ #define CPU_TEMP_BUF_NLONGS 128 #define TCG_STATIC_FRAME_SIZE (CPU_TEMP_BUF_NLONGS * sizeof(long)) -/* Default target word size to pointer size. */ -#ifndef TCG_TARGET_REG_BITS -# if UINTPTR_MAX == UINT32_MAX -# define TCG_TARGET_REG_BITS 32 -# elif UINTPTR_MAX == UINT64_MAX -# define TCG_TARGET_REG_BITS 64 -# else -# error Unknown pointer size for tcg target -# endif -#endif - #if TCG_TARGET_REG_BITS == 32 typedef int32_t tcg_target_long; typedef uint32_t tcg_target_ulong; |