]> git.proxmox.com Git - mirror_qemu.git/commit
plugins: implement inline operation relative to cpu_index
authorPierrick Bouvier <pierrick.bouvier@linaro.org>
Tue, 5 Mar 2024 12:09:52 +0000 (12:09 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 6 Mar 2024 12:35:26 +0000 (12:35 +0000)
commit62f92b8d978aba5de931323c3de788ccb2dbd87c
treebcd8ccf02d24bf604cf1a3638ac66fd8528bd600
parent8042e2eadfd61dcdae321c3632f06d188521bdf5
plugins: implement inline operation relative to cpu_index

Instead of working on a fixed memory location, allow to address it based
on cpu_index, an element size and a given offset.
Result address: ptr + offset + cpu_index * element_size.

With this, we can target a member in a struct array from a base pointer.

Current semantic is not modified, thus inline operation still targets
always the same memory location.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20240304130036.124418-4-pierrick.bouvier@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240305121005.3528075-17-alex.bennee@linaro.org>
accel/tcg/plugin-gen.c
plugins/api.c
plugins/core.c
plugins/plugin.h