[PATCH 0/1] [RISC-V/RVV] use a single function to probe memory.

Paolo Savini posted 1 patch 1 day, 5 hours ago
target/riscv/vector_helper.c | 57 +++++++++++++++++++++++-------------
1 file changed, 37 insertions(+), 20 deletions(-)
[PATCH 0/1] [RISC-V/RVV] use a single function to probe memory.
Posted by Paolo Savini 1 day, 5 hours ago
This patch originates from the last comment of the following review:

https://lore.kernel.org/all/2df9ae98-afb8-4647-be80-12540a1c4612@ventanamicro.com/

We call probe_pages to probe the memory before doing a memory operations or
probe_access_flags to do the same while also obtaining probe flags and host
address.
This involves different calls to code that is almost the same.

This patch expands probe_pages to provide for both cases.

In the new version of probe_pages we don't have a return value to get the probe
flags. We need instead to pass a pointer to such variable in order to get the
flags.

Cc: Richard Handerson <richard.henderson@linaro.org>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Alistair Francis <alistair.francis@wdc.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Weiwei Li <liwei1518@gmail.com>
Cc: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Cc: Liu Zhiwei <zhiwei_liu@linux.alibaba.com>
Cc: Helene Chelin <helene.chelin@embecosm.com>
Cc: Nathan Egge <negge@google.com>
Cc: Max Chou <max.chou@sifive.com>
Cc: Jeremy Bennett <jeremy.bennett@embecosm.com>
Cc: Craig Blackmore <craig.blackmore@embecosm.com>

Paolo Savini (1):
  [RISC-V/RVV] Expand the probe_pages helper function to handle probe
    flags.

 target/riscv/vector_helper.c | 57 +++++++++++++++++++++++-------------
 1 file changed, 37 insertions(+), 20 deletions(-)

-- 
2.34.1