This patch originates from the last comment of the following review:

https://lore.kernel.org/all/2df9ae98-afb8-4647-be80-12540a1c4...@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.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>
Cc: Jeremy Bennett <jeremy.benn...@embecosm.com>
Cc: Craig Blackmore <craig.blackm...@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

Reply via email to