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>
This commit is contained in:
parent
05d019abab
commit
ada4cb0c1c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user