[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 33/43] accel/tcg/plugin: Avoid duplicate copy in copy_call
From: |
Richard Henderson |
Subject: |
[PATCH v5 33/43] accel/tcg/plugin: Avoid duplicate copy in copy_call |
Date: |
Sat, 24 Dec 2022 15:57:10 -0800 |
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>
---
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 v5 23/43] tcg: Add temp_subindex to TCGTemp, (continued)
- [PATCH v5 23/43] tcg: Add temp_subindex to TCGTemp, Richard Henderson, 2022/12/24
- [PATCH v5 28/43] tcg: Introduce TCGCallReturnKind and TCGCallArgumentKind, Richard Henderson, 2022/12/24
- [PATCH v5 30/43] tcg: Replace TCG_TARGET_EXTEND_ARGS with TCG_TARGET_CALL_ARG_I32, Richard Henderson, 2022/12/24
- [PATCH v5 22/43] tcg: Move TCG_{LOW,HIGH} to tcg-internal.h, Richard Henderson, 2022/12/24
- [PATCH v5 24/43] tcg: Simplify calls to temp_sync vs mem_coherent, Richard Henderson, 2022/12/24
- [PATCH v5 37/43] tcg: Use output_pref wrapper function, Richard Henderson, 2022/12/24
- [PATCH v5 26/43] tcg: Move TCG_TYPE_COUNT outside enum, Richard Henderson, 2022/12/24
- [PATCH v5 35/43] tcg: Pass number of arguments to tcg_emit_op() / tcg_op_insert_*(), Richard Henderson, 2022/12/24
- [PATCH v5 25/43] tcg: Allocate TCGTemp pairs in host memory order, Richard Henderson, 2022/12/24
- [PATCH v5 34/43] accel/tcg/plugin: Use copy_op in append_{udata, mem}_cb, Richard Henderson, 2022/12/24
- [PATCH v5 33/43] accel/tcg/plugin: Avoid duplicate copy in copy_call,
Richard Henderson <=
- [PATCH v5 39/43] tcg: Convert typecode_to_ffi from array to function, Richard Henderson, 2022/12/24
- [PATCH v5 27/43] tcg: Introduce tcg_type_size, Richard Henderson, 2022/12/24
- [PATCH v5 29/43] tcg: Replace TCG_TARGET_CALL_ALIGN_ARGS with TCG_TARGET_CALL_ARG_I64, Richard Henderson, 2022/12/24
- [PATCH v5 32/43] accel/tcg/plugin: Don't search for the function pointer index, Richard Henderson, 2022/12/24
- [PATCH v5 36/43] tcg: Vary the allocation size for TCGOp, Richard Henderson, 2022/12/24
- [PATCH v5 38/43] tcg: Reorg function calls, Richard Henderson, 2022/12/24
- [PATCH v5 19/43] tcg: Introduce paired register allocation, Richard Henderson, 2022/12/24
- [PATCH v5 31/43] tcg: Use TCG_CALL_ARG_EVEN for TCI special case, Richard Henderson, 2022/12/24
- [PATCH v5 40/43] tcg: Factor init_ffi_layouts() out of tcg_context_init(), Richard Henderson, 2022/12/24
- [PATCH v5 42/43] tcg/aarch64: Merge tcg_out_callr into tcg_out_call, Richard Henderson, 2022/12/24