qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Gray <bgray@linux.ibm.com>
To: Nicholas Piggin <npiggin@gmail.com>,
	qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Subject: Re: [PATCH 1/2] target/ppc: Restore [H]DEXCR to 64-bits
Date: Wed, 20 Mar 2024 15:33:21 +1100	[thread overview]
Message-ID: <648b18644fe587cc3ae70e6a3081a0835f80a4c0.camel@linux.ibm.com> (raw)
In-Reply-To: <CZYANK3U3EOT.2S7V8APCPDKSS@wheely>

On Wed, 2024-03-20 at 14:31 +1000, Nicholas Piggin wrote:
> On Wed Mar 20, 2024 at 11:50 AM AEST, Benjamin Gray wrote:
> > The DEXCR emulation was recently changed to a 32-bit register,
> > possibly
> > because it does have a 32-bit read-only view. It is a full 64-bit
> > SPR though, so use the corresponding 64-bit write functions.
> > 
> 
> Thanks, paper bag for me.
> 
> > Fixes: c9de140c2171 ("target/ppc: Fix width of some 32-bit SPRs")
> 
> Should that hash be fbda88f7abdee?
> 

Oops, yeah, somehow pasted the local commit hash for this patch itself

> Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
> 
> > Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
> > ---
> >  target/ppc/cpu_init.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c
> > index 7e65f08147..22fdea093b 100644
> > --- a/target/ppc/cpu_init.c
> > +++ b/target/ppc/cpu_init.c
> > @@ -5820,7 +5820,7 @@ static void
> > register_power10_dexcr_sprs(CPUPPCState *env)
> >  {
> >      spr_register(env, SPR_DEXCR, "DEXCR",
> >              SPR_NOACCESS, SPR_NOACCESS,
> > -            &spr_read_generic, &spr_write_generic32,
> > +            &spr_read_generic, &spr_write_generic,
> >              0);
> >  
> >      spr_register(env, SPR_UDEXCR, "UDEXCR",
> > @@ -5831,7 +5831,7 @@ static void
> > register_power10_dexcr_sprs(CPUPPCState *env)
> >      spr_register_hv(env, SPR_HDEXCR, "HDEXCR",
> >              SPR_NOACCESS, SPR_NOACCESS,
> >              SPR_NOACCESS, SPR_NOACCESS,
> > -            &spr_read_generic, &spr_write_generic32,
> > +            &spr_read_generic, &spr_write_generic,
> >              0);
> >  
> >      spr_register(env, SPR_UHDEXCR, "UHDEXCR",
> 



      reply	other threads:[~2024-03-20  4:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-20  1:50 [PATCH 1/2] target/ppc: Restore [H]DEXCR to 64-bits Benjamin Gray
2024-03-20  1:50 ` [PATCH 2/2] target/ppc: Fix GDB register indexing on secondary CPUs Benjamin Gray
2024-03-20  4:32   ` Nicholas Piggin
2024-03-20  4:31 ` [PATCH 1/2] target/ppc: Restore [H]DEXCR to 64-bits Nicholas Piggin
2024-03-20  4:33   ` Benjamin Gray [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=648b18644fe587cc3ae70e6a3081a0835f80a4c0.camel@linux.ibm.com \
    --to=bgray@linux.ibm.com \
    --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).