From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: deller@kernel.org, qemu-devel@nongnu.org
Cc: Richard Henderson <richard.henderson@linaro.org>,
Helge Deller <deller@gmx.de>
Subject: Re: [PATCH 2/5] target/hppa: Add priviledge to MMU index conversion helpers
Date: Fri, 25 Aug 2023 09:09:49 +0200 [thread overview]
Message-ID: <21af41fe-6fe3-7449-c61d-5571abe3ce03@linaro.org> (raw)
In-Reply-To: <20230824210434.151971-3-deller@kernel.org>
On 24/8/23 23:04, deller@kernel.org wrote:
> From: Helge Deller <deller@gmx.de>
>
> Add two macros which convert priviledge level to/from MMU index:
>
> - PRIV_TO_MMU_IDX(priv)
> returns the MMU index for the given priviledge level
>
> - MMU_IDX_TO_PRIV(mmu_idx)
> returns the corresponding priviledge level for this MMU index
>
> The introduction of those macros make the code easier to read and
> will help to improve performance in follow-up patch.
>
> Signed-off-by: Helge Deller <deller@gmx.de>
> ---
> target/hppa/cpu.h | 5 ++++-
> target/hppa/translate.c | 9 +++++----
> 2 files changed, 9 insertions(+), 5 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
next prev parent reply other threads:[~2023-08-25 7:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 21:04 [PATCH 0/5] target/hppa: Clean up conversion from/to MMU index and priviledge level deller
2023-08-24 21:04 ` [PATCH 1/5] target/hppa: Add missing PL1 and PL2 priviledge levels deller
2023-08-25 7:11 ` Philippe Mathieu-Daudé
2023-08-24 21:04 ` [PATCH 2/5] target/hppa: Add priviledge to MMU index conversion helpers deller
2023-08-25 7:09 ` Philippe Mathieu-Daudé [this message]
2023-08-24 21:04 ` [PATCH 3/5] target/hppa: Do not use hardcoded value for tlb_flush_*() deller
2023-08-25 7:14 ` Philippe Mathieu-Daudé
2023-08-24 21:04 ` [PATCH 4/5] target/hppa: Use privilege helper in hppa_get_physical_address() deller
2023-08-25 7:15 ` Philippe Mathieu-Daudé
2023-08-24 21:04 ` [PATCH 5/5] target/hppa: Switch to use MMU indices 11-15 deller
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=21af41fe-6fe3-7449-c61d-5571abe3ce03@linaro.org \
--to=philmd@linaro.org \
--cc=deller@gmx.de \
--cc=deller@kernel.org \
--cc=qemu-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).