From: Richard Henderson Date: Thu, 10 Nov 2022 13:16:36 +0000 (+1000) Subject: accel/tcg/plugin: Avoid duplicate copy in copy_call X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ada4cb0c1cba89df3b00b6a92a6c1523c30f4396;p=qemu.git accel/tcg/plugin: Avoid duplicate copy in copy_call We copied all of the arguments in copy_op_nocheck. We only need to replace the one argument that we change. Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- diff --git a/accel/tcg/plugin-gen.c b/accel/tcg/plugin-gen.c index 9e359c006a..77e6823d6b 100644 --- a/accel/tcg/plugin-gen.c +++ b/accel/tcg/plugin-gen.c @@ -397,9 +397,7 @@ static TCGOp *copy_call(TCGOp **begin_op, TCGOp *op, void *empty_func, func_idx = TCGOP_CALLO(op) + TCGOP_CALLI(op); *cb_idx = func_idx; - op->args[func_idx] = (uintptr_t)func; - op->args[func_idx + 1] = old_op->args[func_idx + 1]; return op; }