From: Richard Henderson <richard.henderson@linaro.org>
To: Leandro Lupori <leandro.lupori@eldorado.org.br>,
qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Cc: clg@kaod.org, danielhb413@gmail.com, david@gibson.dropbear.id.au,
groug@kaod.org, npiggin@gmail.com
Subject: Re: [PATCH RESEND v2 2/2] target/ppc: Implement ISA 3.00 tlbie[l]
Date: Fri, 24 Jun 2022 12:50:02 -0700 [thread overview]
Message-ID: <fa56c2e6-3f05-e446-4b31-d6b88ee115de@linaro.org> (raw)
In-Reply-To: <20220624191424.190471-3-leandro.lupori@eldorado.org.br>
On 6/24/22 12:14, Leandro Lupori wrote:
> This initial version supports the invalidation of one or all
> TLB entries. Flush by PID/LPID, or based in process/partition
> scope is not supported, because it would make using the
> generic QEMU TLB implementation hard. In these cases, all
> entries are flushed.
>
> Signed-off-by: Leandro Lupori <leandro.lupori@eldorado.org.br>
> ---
> target/ppc/helper.h | 18 +++
> target/ppc/mmu_helper.c | 154 +++++++++++++++++++
> target/ppc/translate/storage-ctrl-impl.c.inc | 15 ++
> 3 files changed, 187 insertions(+)
>
> diff --git a/target/ppc/helper.h b/target/ppc/helper.h
> index d627cfe6ed..5e663a0a50 100644
> --- a/target/ppc/helper.h
> +++ b/target/ppc/helper.h
> @@ -672,6 +672,24 @@ DEF_HELPER_FLAGS_1(tlbia, TCG_CALL_NO_RWG, void, env)
> DEF_HELPER_FLAGS_2(tlbie, TCG_CALL_NO_RWG, void, env, tl)
> DEF_HELPER_FLAGS_2(tlbiva, TCG_CALL_NO_RWG, void, env, tl)
> #if defined(TARGET_PPC64)
> +
> +/*
> + * tlbie[l] helper flags
> + *
> + * RIC, PRS, R and local are passed as flags in the last argument.
> + */
> +#define TLBIE_F_RIC_SHIFT 0
> +#define TLBIE_F_PRS_SHIFT 2
> +#define TLBIE_F_R_SHIFT 3
> +#define TLBIE_F_LOCAL_SHIFT 4
> +
> +#define TLBIE_F_RIC_MASK (3 << TLBIE_F_RIC_SHIFT)
> +#define TLBIE_F_PRS (1 << TLBIE_F_PRS_SHIFT)
> +#define TLBIE_F_R (1 << TLBIE_F_R_SHIFT)
> +#define TLBIE_F_LOCAL (1 << TLBIE_F_LOCAL_SHIFT)
> +
Better to put these somewhere else -- internal.h probably -- helper.h is included multiple
times.
r~
next prev parent reply other threads:[~2022-06-24 19:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-24 19:14 [PATCH RESEND v2 0/2] ppc: Implement ISA 3.00 tlbie[l] Leandro Lupori
2022-06-24 19:14 ` [PATCH RESEND v2 1/2] target/ppc: Move tlbie[l] to decode tree Leandro Lupori
2022-06-24 19:14 ` [PATCH RESEND v2 2/2] target/ppc: Implement ISA 3.00 tlbie[l] Leandro Lupori
2022-06-24 19:50 ` Richard Henderson [this message]
2022-07-12 16:22 ` Leandro Lupori
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=fa56c2e6-3f05-e446-4b31-d6b88ee115de@linaro.org \
--to=richard.henderson@linaro.org \
--cc=clg@kaod.org \
--cc=danielhb413@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=groug@kaod.org \
--cc=leandro.lupori@eldorado.org.br \
--cc=npiggin@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.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).