diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2025-01-03 11:19:19 -0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2025-01-16 20:57:16 -0800 |
commit | 6323b3639cfd362abcd1f29c52455ae550d5ac99 (patch) | |
tree | 75d604736cc8240e400d6f5d5cf48c98b2fee439 /tcg/tcg.c | |
parent | 07ffd5b219681d9f6eb6bef9f66152bb88b23106 (diff) | |
download | qemu-6323b3639cfd362abcd1f29c52455ae550d5ac99.zip qemu-6323b3639cfd362abcd1f29c52455ae550d5ac99.tar.gz qemu-6323b3639cfd362abcd1f29c52455ae550d5ac99.tar.bz2 |
tcg: Pass type and flags to tcg_target_op_def
Allow the backend to make constraint choices based on more parameters.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r-- | tcg/tcg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -866,7 +866,7 @@ typedef enum { #include "tcg-target-con-set.h" } TCGConstraintSetIndex; -static TCGConstraintSetIndex tcg_target_op_def(TCGOpcode); +static TCGConstraintSetIndex tcg_target_op_def(TCGOpcode, TCGType, unsigned); #undef C_O0_I1 #undef C_O0_I2 @@ -3375,7 +3375,7 @@ static const TCGArgConstraint *opcode_args_ct(const TCGOp *op) return empty_cts; } - con_set = tcg_target_op_def(op->opc); + con_set = tcg_target_op_def(op->opc, TCGOP_TYPE(op), TCGOP_FLAGS(op)); tcg_debug_assert(con_set >= 0 && con_set < ARRAY_SIZE(constraint_sets)); /* The constraint arguments must match TCGOpcode arguments. */ |