From: David Gibson <david@gibson.dropbear.id.au>
To: "Lucas Mateus Castro (alqotel)" <lucas.araujo@eldorado.org.br>
Cc: matheus.ferst@eldorado.org.br, luis.pires@eldorado.org.br,
fernando.valle@eldorado.org.br, qemu-ppc@nongnu.org,
qemu-devel@nongnu.org
Subject: Re: [PATCH v5 3/3] target/ppc: moved store_40x_sler to helper_regs.c
Date: Mon, 26 Jul 2021 14:30:17 +1000 [thread overview]
Message-ID: <YP46Wb7WQ+W32dHd@yekko> (raw)
In-Reply-To: <20210723175627.72847-4-lucas.araujo@eldorado.org.br>
[-- Attachment #1: Type: text/plain, Size: 2341 bytes --]
On Fri, Jul 23, 2021 at 02:56:27PM -0300, Lucas Mateus Castro (alqotel) wrote:
> moved store_40x_sler from mmu_common.c to helper_regs.c as it is
> a function to store a value in a special purpose register, so
> moving it to a file focused in special register manipulation
> is more appropriate.
>
> Signed-off-by: Lucas Mateus Castro (alqotel)
> <lucas.araujo@eldorado.org.br>
Applied to ppc-for-6.2, thanks.
> ---
> target/ppc/helper_regs.c | 12 ++++++++++++
> target/ppc/mmu_common.c | 10 ----------
> 2 files changed, 12 insertions(+), 10 deletions(-)
>
> diff --git a/target/ppc/helper_regs.c b/target/ppc/helper_regs.c
> index 3723872aa6..405450d863 100644
> --- a/target/ppc/helper_regs.c
> +++ b/target/ppc/helper_regs.c
> @@ -258,6 +258,18 @@ int hreg_store_msr(CPUPPCState *env, target_ulong value, int alter_hv)
> return excp;
> }
>
> +#ifdef CONFIG_SOFTMMU
> +void store_40x_sler(CPUPPCState *env, uint32_t val)
> +{
> + /* XXX: TO BE FIXED */
> + if (val != 0x00000000) {
> + cpu_abort(env_cpu(env),
> + "Little-endian regions are not supported by now\n");
> + }
> + env->spr[SPR_405_SLER] = val;
> +}
> +#endif /* CONFIG_SOFTMMU */
> +
> #ifndef CONFIG_USER_ONLY
> void check_tlb_flush(CPUPPCState *env, bool global)
> {
> diff --git a/target/ppc/mmu_common.c b/target/ppc/mmu_common.c
> index a0518f611b..754509e556 100644
> --- a/target/ppc/mmu_common.c
> +++ b/target/ppc/mmu_common.c
> @@ -622,16 +622,6 @@ static int mmu40x_get_physical_address(CPUPPCState *env, mmu_ctx_t *ctx,
> return ret;
> }
>
> -void store_40x_sler(CPUPPCState *env, uint32_t val)
> -{
> - /* XXX: TO BE FIXED */
> - if (val != 0x00000000) {
> - cpu_abort(env_cpu(env),
> - "Little-endian regions are not supported by now\n");
> - }
> - env->spr[SPR_405_SLER] = val;
> -}
> -
> static int mmubooke_check_tlb(CPUPPCState *env, ppcemb_tlb_t *tlb,
> hwaddr *raddr, int *prot, target_ulong address,
> MMUAccessType access_type, int i)
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2021-07-26 4:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-23 17:56 [PATCH v5 0/3] target/ppc: MMU clean up Lucas Mateus Castro (alqotel)
2021-07-23 17:56 ` [PATCH v5 1/3] target/ppc: divided mmu_helper.c in 2 files Lucas Mateus Castro (alqotel)
2021-07-26 4:29 ` David Gibson
2021-07-23 17:56 ` [PATCH v5 2/3] target/ppc: moved ppc_store_sdr1 to mmu_common.c Lucas Mateus Castro (alqotel)
2021-07-26 4:29 ` David Gibson
2021-07-23 17:56 ` [PATCH v5 3/3] target/ppc: moved store_40x_sler to helper_regs.c Lucas Mateus Castro (alqotel)
2021-07-26 4:30 ` David Gibson [this message]
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=YP46Wb7WQ+W32dHd@yekko \
--to=david@gibson.dropbear.id.au \
--cc=fernando.valle@eldorado.org.br \
--cc=lucas.araujo@eldorado.org.br \
--cc=luis.pires@eldorado.org.br \
--cc=matheus.ferst@eldorado.org.br \
--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).