All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org,
	Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>
Subject: Re: [RFC PATCH 17/18] target/riscv: Pass first/last to get_physical_address_pmp
Date: Tue, 18 Aug 2026 07:35:48 +0200	[thread overview]
Message-ID: <6cc52634-67d1-40ce-8787-e166683caf31@oss.qualcomm.com> (raw)
In-Reply-To: <20260815203730.1468365-18-richard.henderson@linaro.org>

On 15/8/26 22:37, Richard Henderson wrote:
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   target/riscv/tcg/cpu_helper.c | 48 +++++++++++++++++++----------------
>   1 file changed, 26 insertions(+), 22 deletions(-)
> 
> diff --git a/target/riscv/tcg/cpu_helper.c b/target/riscv/tcg/cpu_helper.c
> index 3318e82ea7..fb1250a4b8 100644
> --- a/target/riscv/tcg/cpu_helper.c
> +++ b/target/riscv/tcg/cpu_helper.c
> @@ -899,12 +899,13 @@ void riscv_cpu_set_mode(CPURISCVState *env, privilege_mode_t newpriv,
>    *
>    * @env: CPURISCVState
>    * @prot: The returned protection attributes
> - * @addr: The physical address to be checked permission
> + * @first, @last: The physical address range to be permission checked
>    * @access_type: The type of MMU access
>    * @mode: Indicates current privilege level.
>    */
> -static int get_physical_address_pmp(CPURISCVState *env, int *prot, hwaddr addr,
> -                                    int size, MMUAccessType access_type,
> +static int get_physical_address_pmp(CPURISCVState *env, int *prot,
> +                                    hwaddr first, hwaddr last,
> +                                    MMUAccessType access_type,
>                                       privilege_mode_t mode)

Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>

Orthogonal, it would be clearer if get_physical_address_pmp & co
were returning an enum.



  parent reply	other threads:[~2026-08-18  5:36 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-15 20:37 [RFC PATCH 00/18] accel/tcg: Change tlb_fill/probe_access to (addr, first, last) tuple Richard Henderson
2026-08-15 20:37 ` [RFC PATCH 01/18] target/arm: Imply probe from allocation_tag_mem_probe Richard Henderson
2026-08-15 20:37 ` [RFC PATCH 02/18] target/arm: Simplify invalid page test in allocation_tag_mem_internal Richard Henderson
2026-08-15 20:37 ` [RFC PATCH 03/18] target/arm: Return struct from allocation_tag_mem_internal Richard Henderson
2026-08-15 20:37 ` [RFC PATCH 04/18] target/arm: Generalize probe argument to allocation_tag_mem_internal Richard Henderson
2026-08-15 20:37 ` [RFC PATCH 05/18] target/arm: Probe second page earlier in allocation_tag_mem_internal Richard Henderson
2026-08-15 20:37 ` [RFC PATCH 06/18] accel/tcg: Drop fault_size from user-only probe_access_internal Richard Henderson
2026-08-16  9:05   ` Philippe Mathieu-Daudé
2026-08-15 20:37 ` [RFC PATCH 07/18] accel/tcg: Replace size with first/last in probe_access_full Richard Henderson
2026-08-16  9:09   ` Philippe Mathieu-Daudé
2026-08-16  9:11     ` Philippe Mathieu-Daudé
2026-08-15 20:37 ` [RFC PATCH 08/18] accel/tcg: Replace size with first/last in probe_access_flags Richard Henderson
2026-08-16  9:18   ` Philippe Mathieu-Daudé
2026-08-15 20:37 ` [RFC PATCH 09/18] accel/tcg: Allow phost to be NULL " Richard Henderson
2026-08-16  9:18   ` Philippe Mathieu-Daudé
2026-08-15 20:37 ` [RFC PATCH 10/18] accel/tcg: Replace size with first/last in probe_access_internal Richard Henderson
2026-08-16  9:19   ` Philippe Mathieu-Daudé
2026-08-15 20:37 ` [RFC PATCH 11/18] accel/tcg: Replace size with first/last in tlb_fill_align Richard Henderson
2026-08-16  9:20   ` Philippe Mathieu-Daudé
2026-08-15 20:37 ` [RFC PATCH 12/18] accel/tcg: Replace size with first/last in TCGCPUOps.tlb_fill* Richard Henderson
2026-08-16 15:17   ` Philippe Mathieu-Daudé
2026-08-21 21:07     ` Richard Henderson
2026-08-15 20:37 ` [RFC PATCH 13/18] target/riscv: Move PMP_AMATCH_OFF check in pmp_hart_has_privs Richard Henderson
2026-08-16  9:21   ` Philippe Mathieu-Daudé
2026-08-18  3:30   ` Alistair
2026-08-15 20:37 ` [RFC PATCH 14/18] target/riscv: Return bool from pmp_is_in_range Richard Henderson
2026-08-16 15:09   ` Philippe Mathieu-Daudé
2026-08-18  3:31   ` Alistair
2026-08-15 20:37 ` [RFC PATCH 15/18] target/riscv: Use boolean logic in pmp_hart_has_privs Richard Henderson
2026-08-18  3:32   ` Alistair
2026-08-15 20:37 ` [RFC PATCH 16/18] target/riscv: Recognize watchpoints with first/last Richard Henderson
2026-08-18  5:43   ` Philippe Mathieu-Daudé
2026-08-18 23:47     ` Richard Henderson
2026-08-15 20:37 ` [RFC PATCH 17/18] target/riscv: Pass first/last to get_physical_address_pmp Richard Henderson
2026-08-18  3:35   ` Alistair
2026-08-18  5:35   ` Philippe Mathieu-Daudé [this message]
2026-08-15 20:37 ` [RFC PATCH 18/18] target/riscv: Pass first/last to pmp_hart_has_privs Richard Henderson
2026-08-18  3:36   ` Alistair

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6cc52634-67d1-40ce-8787-e166683caf31@oss.qualcomm.com \
    --to=philmd@oss.qualcomm.com \
    --cc=daniel.barboza@oss.qualcomm.com \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.