There were no comments on the RFC so reposting as a final patch. Changes since v5: - Removed RFC
Changes since v4: - Split into a seperate submission to simplify review - Use load/store atomic functions as suggested by Richard Henderson - Do 8, 4, 2 byte atomic ldst for sizes smaller than 16 bytes This patch now uses the atomic ldst functions from accel/tcg/ldst_atomicity.c.inc to ensure element size atomicity. I was not sure of the best way to make these functions accessible from the riscv target, so any suggestions are very welcome. Previous versions: - v1: https://lore.kernel.org/all/20240717153040.11073-1-paolo.sav...@embecosm.com/ - v2: https://lore.kernel.org/all/20241002135708.99146-1-paolo.sav...@embecosm.com/ - v3: https://lore.kernel.org/all/20241014220153.196183-1-paolo.sav...@embecosm.com/ - v4: https://lore.kernel.org/all/20241029194348.59574-1-paolo.sav...@embecosm.com/ - v5: https://lore.kernel.org/all/20241211143118.661268-1-craig.blackm...@embecosm.com/ Cc: Richard Henderson <richard.hender...@linaro.org> Cc: Palmer Dabbelt <pal...@dabbelt.com> Cc: Alistair Francis <alistair.fran...@wdc.com> Cc: Bin Meng <bmeng...@gmail.com> Cc: Weiwei Li <liwei1...@gmail.com> Cc: Daniel Henrique Barboza <dbarb...@ventanamicro.com> Cc: Liu Zhiwei <zhiwei_...@linux.alibaba.com> Cc: Helene Chelin <helene.che...@embecosm.com> Cc: Nathan Egge <ne...@google.com> Cc: Max Chou <max.c...@sifive.com> Craig Blackmore (1): target/riscv: rvv: Use wider accesses for unit stride load/store target/riscv/trace-events | 12 +++++ target/riscv/vector_helper.c | 95 +++++++++++++++++++++++++++++++++--- 2 files changed, 101 insertions(+), 6 deletions(-) -- 2.43.0