mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
e5b4906377
commit
d46259c037
18 changed files with 162 additions and 59 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue