mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
tcg: Make ARRAY_SIZE(tcg_op_defs) globally available
tcg_op_defs was already a global array. The tci disassembler also needs ARRAY_SIZE(tcg_op_defs), so add a new global constant with this value. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
ce285b1754
commit
2a24374ab6
2 changed files with 3 additions and 1 deletions
|
@ -89,6 +89,7 @@ TCGOpDef tcg_op_defs[] = {
|
|||
#include "tcg-opc.h"
|
||||
#undef DEF
|
||||
};
|
||||
const size_t tcg_op_defs_max = ARRAY_SIZE(tcg_op_defs);
|
||||
|
||||
static TCGRegSet tcg_target_available_regs[2];
|
||||
static TCGRegSet tcg_target_call_clobber_regs;
|
||||
|
|
|
@ -525,6 +525,7 @@ typedef struct TCGOpDef {
|
|||
} TCGOpDef;
|
||||
|
||||
extern TCGOpDef tcg_op_defs[];
|
||||
extern const size_t tcg_op_defs_max;
|
||||
|
||||
typedef struct TCGTargetOpDef {
|
||||
TCGOpcode op;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue