[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 09/14] target/ppc: add helper to write per-LPAR SPRs
From: |
Nicholas Piggin |
Subject: |
Re: [PATCH 09/14] target/ppc: add helper to write per-LPAR SPRs |
Date: |
Mon, 20 May 2024 17:23:14 +1000 |
On Sat May 18, 2024 at 9:26 PM AEST, Richard Henderson wrote:
> On 5/18/24 11:31, Nicholas Piggin wrote:
> > +void spr_core_write_generic32(DisasContext *ctx, int sprn, int gprn)
> > +{
> > + TCGv t0 = tcg_temp_new();
> > + if (!(ctx->flags & POWERPC_FLAG_SMT)) {
> > + spr_write_generic32(ctx, sprn, gprn);
> > + return;
> > + }
> > +
> > + if (!gen_serialize(ctx)) {
> > + return;
> > + }
> > +
> > + tcg_gen_ext32u_tl(t0, cpu_gpr[gprn]);
>
> Better to delay allocating the temp until needed, so that you don't allocate
> one along the
> return paths.
Will fix.
Thanks,
Nick
- [PATCH 04/14] target/ppc: improve checkstop logging, (continued)
- [PATCH 04/14] target/ppc: improve checkstop logging, Nicholas Piggin, 2024/05/18
- [PATCH 06/14] target/ppc: BookE DECAR SPR is 32-bit, Nicholas Piggin, 2024/05/18
- [PATCH 07/14] target/ppc: Wire up BookE ATB registers for e500 family, Nicholas Piggin, 2024/05/18
- [PATCH 05/14] target/ppc: Implement attn instruction on BookS 64-bit processors, Nicholas Piggin, 2024/05/18
- [PATCH 09/14] target/ppc: add helper to write per-LPAR SPRs, Nicholas Piggin, 2024/05/18
- [PATCH 11/14] target/ppc: Add SMT support to PTCR SPR, Nicholas Piggin, 2024/05/18
- [PATCH 08/14] target/ppc: Add PPR32 SPR, Nicholas Piggin, 2024/05/18
- [PATCH 10/14] target/ppc: Add SMT support to simple SPRs, Nicholas Piggin, 2024/05/18
- [PATCH 12/14] target/ppc: Implement LDBAR, TTR SPRs, Nicholas Piggin, 2024/05/18
- [PATCH 13/14] target/ppc: Implement SPRC/SPRD SPRs, Nicholas Piggin, 2024/05/18
- [PATCH 14/14] target/ppc: add SMT support to msgsnd broadcast, Nicholas Piggin, 2024/05/18