[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 05/14] target/ppc: Implement attn instruction on BookS 64-bit
|
From: |
Nicholas Piggin |
|
Subject: |
Re: [PATCH 05/14] target/ppc: Implement attn instruction on BookS 64-bit processors |
|
Date: |
Mon, 20 May 2024 17:22:54 +1000 |
On Sat May 18, 2024 at 9:07 PM AEST, Richard Henderson wrote:
> On 5/18/24 11:31, Nicholas Piggin wrote:
> > +static void gen_attn(DisasContext *ctx)
> > +{
> > +#if defined(CONFIG_USER_ONLY)
> > + GEN_PRIV(ctx);
> > +#else
> > + gen_helper_attn(tcg_env);
> > +#endif
> > +}
>
> You forgot to check priv in system mode.
> Better as
>
> GEN_PRIV(ctx);
> #ifndef CONFIG_USER_ONLY
> gen_helper_attn(...)
> #endif
Good catch again.
I'm actually wrong there too, it should be treated as illegal
unless it is enabled with a system SPR, in which case it's
unprivileged (it can be inserted by external hardware debuggers
to stop the CPU and get notified).
Thanks,
Nick
- Re: [PATCH 02/14] target/ppc: Remove redundant MEMOP_GET_SIZE macro, (continued)
- [PATCH 03/14] target/ppc: Make checkstop actually stop the system, Nicholas Piggin, 2024/05/18
- [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