aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-01-03 11:08:44 -0800
committerRichard Henderson <richard.henderson@linaro.org>2025-01-16 20:57:16 -0800
commit07ffd5b219681d9f6eb6bef9f66152bb88b23106 (patch)
tree12a5b0a7ead2dfdfdcf937ba62f46bc1d27eec2b /tcg
parentb277cdd20baf6d8579aa5a874f713f9e19833c9f (diff)
downloadqemu-07ffd5b219681d9f6eb6bef9f66152bb88b23106.zip
qemu-07ffd5b219681d9f6eb6bef9f66152bb88b23106.tar.gz
qemu-07ffd5b219681d9f6eb6bef9f66152bb88b23106.tar.bz2
tcg: Add TCG_OPF_NOT_PRESENT to opcodes without inputs or outputs
The br, mb, goto_tb and exit_tb opcodes do not have register operands, only constants, flags, or labels. Remove the special case in opcode_args_ct by including TCG_OPF_NOT_PRESENT in the flags for these opcodes. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index b9119a1..e9ecdc5 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -3371,9 +3371,6 @@ static const TCGArgConstraint *opcode_args_ct(const TCGOp *op)
assert(tcg_op_supported(op->opc, TCGOP_TYPE(op), TCGOP_FLAGS(op)));
#endif
- if (def->nb_iargs + def->nb_oargs == 0) {
- return NULL;
- }
if (def->flags & TCG_OPF_NOT_PRESENT) {
return empty_cts;
}