aboutsummaryrefslogtreecommitdiff
path: root/include/tcg
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-12-27 11:40:42 -0800
committerRichard Henderson <richard.henderson@linaro.org>2025-01-16 20:57:16 -0800
commit3e80824e8bffef2d1dd27165a2cf48e8c034ed10 (patch)
tree140acd56ab03b9ce4350b1f547e12308fa00446e /include/tcg
parentf44824cc4dcdc993d60639576d706ecf5996ca5a (diff)
downloadqemu-3e80824e8bffef2d1dd27165a2cf48e8c034ed10.zip
qemu-3e80824e8bffef2d1dd27165a2cf48e8c034ed10.tar.gz
qemu-3e80824e8bffef2d1dd27165a2cf48e8c034ed10.tar.bz2
tcg: Reorg process_op_defs
Process each TCGConstraintSetIndex first. Allocate TCGArgConstraint arrays based on those. Only afterward process the TCGOpcodes and share those TCGArgConstraint arrays. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/tcg')
-rw-r--r--include/tcg/tcg.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h
index e5fa69d..a02de82 100644
--- a/include/tcg/tcg.h
+++ b/include/tcg/tcg.h
@@ -714,17 +714,12 @@ typedef struct TCGOpDef {
const char *name;
uint8_t nb_oargs, nb_iargs, nb_cargs, nb_args;
uint8_t flags;
- TCGArgConstraint *args_ct;
+ const TCGArgConstraint *args_ct;
} TCGOpDef;
extern TCGOpDef tcg_op_defs[];
extern const size_t tcg_op_defs_max;
-typedef struct TCGTargetOpDef {
- TCGOpcode op;
- const char *args_ct_str[TCG_MAX_OP_ARGS];
-} TCGTargetOpDef;
-
/*
* tcg_op_supported:
* Query if @op, for @type and @flags, is supported by the host