mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
tcg: split tcg_op_defs to -common
tcg_op_defs (and the _max) are both needed by the TCI disassembler. For multi-arch, tcg.c will be multiple-compiled (arch-obj) with its symbols hidden from common code. So split the definition off to new file, tcg-common.c which will remain a regular obj-y for use by both the TCI disas as well as the multiple tcg.c's. Cc: Stefan Weil <sw@weilnetz.de> Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com> Message-Id: <4b607425886d85aee65878e4935dfad46b3e6085.1441614289.git.crosthwaite.peter@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
9b68a7754a
commit
7d8f787d9d
4 changed files with 36 additions and 8 deletions
|
@ -850,7 +850,7 @@ static void tcg_target_init(TCGContext *s)
|
|||
#endif
|
||||
|
||||
/* The current code uses uint8_t for tcg operations. */
|
||||
assert(ARRAY_SIZE(tcg_op_defs) <= UINT8_MAX);
|
||||
assert(tcg_op_defs_max <= UINT8_MAX);
|
||||
|
||||
/* Registers available for 32 bit operations. */
|
||||
tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue