On 1/12/24 01:23, Pierrick Bouvier wrote:
Instead of working on a fixed memory location, allow to index it based
on cpu_index and a given offset (ptr + cpu_index * offset).
Current semantic is not modified as we use a 0 offset, thus inline
operation still targets always the same memory location.
Signed-off-by: Pierrick Bouvier <pierrick.bouv...@linaro.org>
---
accel/tcg/plugin-gen.c | 60 +++++++++++++++++++++++++++++++++++-------
include/qemu/plugin.h | 1 +
plugins/api.c | 7 ++---
plugins/core.c | 11 +++++---
plugins/plugin.h | 5 ++--
5 files changed, 65 insertions(+), 19 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
For the to-do list: add mul -> shl strength reduction in fold_mul().
r~