[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-8.0 v3 20/45] accel/tcg/plugin: Avoid duplicate copy in copy_
From: |
Richard Henderson |
Subject: |
[PATCH for-8.0 v3 20/45] accel/tcg/plugin: Avoid duplicate copy in copy_call |
Date: |
Fri, 11 Nov 2022 17:40:36 +1000 |
We copied all of the arguments in copy_op_nocheck.
We only need to replace the one argument that we change.
Signed-off-by: Richard Henderson <[email protected]>
---
accel/tcg/plugin-gen.c | 2 --
1 file changed, 2 deletions(-)
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;
}
--
2.34.1
- [PATCH for-8.0 v3 21/45] accel/tcg/plugin: Use copy_op in append_{udata, mem}_cb, (continued)
[PATCH for-8.0 v3 17/45] tcg: Replace TCG_TARGET_EXTEND_ARGS with TCG_TARGET_CALL_ARG_I32, Richard Henderson, 2022/11/11
[PATCH for-8.0 v3 20/45] accel/tcg/plugin: Avoid duplicate copy in copy_call,
Richard Henderson <=
[PATCH for-8.0 v3 23/45] tcg: Vary the allocation size for TCGOp, Richard Henderson, 2022/11/11
[PATCH for-8.0 v3 26/45] tcg: Move ffi_cif pointer into TCGHelperInfo, Richard Henderson, 2022/11/11
[PATCH for-8.0 v3 27/45] tcg/aarch64: Merge tcg_out_callr into tcg_out_call, Richard Henderson, 2022/11/11
[PATCH for-8.0 v3 24/45] tcg: Use output_pref wrapper function, Richard Henderson, 2022/11/11