mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -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
17
tcg/s390x/tcg-target-reg-bits.h
Normal file
17
tcg/s390x/tcg-target-reg-bits.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* SPDX-License-Identifier: MIT */
|
||||
/*
|
||||
* Define target-specific register size
|
||||
* Copyright (c) 2009 Ulrich Hecht <uli@suse.de>
|
||||
*/
|
||||
|
||||
#ifndef TCG_TARGET_REG_BITS_H
|
||||
#define TCG_TARGET_REG_BITS_H
|
||||
|
||||
/* We only support generating code for 64-bit mode. */
|
||||
#if UINTPTR_MAX == UINT64_MAX
|
||||
# define TCG_TARGET_REG_BITS 64
|
||||
#else
|
||||
# error "unsupported code generation mode"
|
||||
#endif
|
||||
|
||||
#endif
|
|
@ -24,11 +24,6 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/* We only support generating code for 64-bit mode. */
|
||||
#if TCG_TARGET_REG_BITS != 64
|
||||
#error "unsupported code generation mode"
|
||||
#endif
|
||||
|
||||
#include "../tcg-ldst.c.inc"
|
||||
#include "../tcg-pool.c.inc"
|
||||
#include "elf.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue