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
|
@ -29,17 +29,6 @@
|
|||
#ifndef LOONGARCH_TCG_TARGET_H
|
||||
#define LOONGARCH_TCG_TARGET_H
|
||||
|
||||
/*
|
||||
* Loongson removed the (incomplete) 32-bit support from kernel and toolchain
|
||||
* for the initial upstreaming of this architecture, so don't bother and just
|
||||
* support the LP64* ABI for now.
|
||||
*/
|
||||
#if defined(__loongarch64)
|
||||
# define TCG_TARGET_REG_BITS 64
|
||||
#else
|
||||
# error unsupported LoongArch register size
|
||||
#endif
|
||||
|
||||
#define TCG_TARGET_INSN_UNIT_SIZE 4
|
||||
#define TCG_TARGET_NB_REGS 32
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue