diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2025-01-03 11:08:44 -0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2025-01-16 20:57:16 -0800 |
commit | 07ffd5b219681d9f6eb6bef9f66152bb88b23106 (patch) | |
tree | 12a5b0a7ead2dfdfdcf937ba62f46bc1d27eec2b /tcg | |
parent | b277cdd20baf6d8579aa5a874f713f9e19833c9f (diff) | |
download | qemu-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.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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; } |