aboutsummaryrefslogtreecommitdiff
path: root/accel
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-11-10 23:16:36 +1000
committerRichard Henderson <richard.henderson@linaro.org>2023-01-05 11:41:29 -0800
commitada4cb0c1cba89df3b00b6a92a6c1523c30f4396 (patch)
tree9127508fefcaf681a26c9af83e258fc2bce45d05 /accel
parent05d019abab15882ae726da22c3334e0f4b1797e3 (diff)
downloadqemu-ada4cb0c1cba89df3b00b6a92a6c1523c30f4396.zip
qemu-ada4cb0c1cba89df3b00b6a92a6c1523c30f4396.tar.gz
qemu-ada4cb0c1cba89df3b00b6a92a6c1523c30f4396.tar.bz2
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 <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel')
-rw-r--r--accel/tcg/plugin-gen.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/accel/tcg/plugin-gen.c b/accel/tcg/plugin-gen.c
index 9e359c0..77e6823 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;
}