mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -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
16
tcg/i386/tcg-target-reg-bits.h
Normal file
16
tcg/i386/tcg-target-reg-bits.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* SPDX-License-Identifier: MIT */
|
||||
/*
|
||||
* Define target-specific register size
|
||||
* Copyright (c) 2008 Fabrice Bellard
|
||||
*/
|
||||
|
||||
#ifndef TCG_TARGET_REG_BITS_H
|
||||
#define TCG_TARGET_REG_BITS_H
|
||||
|
||||
#ifdef __x86_64__
|
||||
# define TCG_TARGET_REG_BITS 64
|
||||
#else
|
||||
# define TCG_TARGET_REG_BITS 32
|
||||
#endif
|
||||
|
||||
#endif
|
|
@ -30,11 +30,9 @@
|
|||
#define TCG_TARGET_INSN_UNIT_SIZE 1
|
||||
|
||||
#ifdef __x86_64__
|
||||
# define TCG_TARGET_REG_BITS 64
|
||||
# define TCG_TARGET_NB_REGS 32
|
||||
# define MAX_CODE_GEN_BUFFER_SIZE (2 * GiB)
|
||||
#else
|
||||
# define TCG_TARGET_REG_BITS 32
|
||||
# define TCG_TARGET_NB_REGS 24
|
||||
# define MAX_CODE_GEN_BUFFER_SIZE UINT32_MAX
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue