[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH 1/8] target/ppc: Add ppc_store_lpcr() helper
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [PATCH 1/8] target/ppc: Add ppc_store_lpcr() helper |
Date: |
Thu, 3 May 2018 17:16:54 +1000 |
User-agent: |
Mutt/1.9.3 (2018-01-21) |
On Thu, May 03, 2018 at 09:06:42AM +0200, Cédric Le Goater wrote:
> On 05/03/2018 08:21 AM, David Gibson wrote:
> > There are some fields in the cpu state which need to be updated when the
> > LPCR register is changed, which is done by ppc_hash64_update_rmls() and
> > ppc_hash64_update_vrma(). Code which alters env->spr[SPR_LPCR] needs to
> > call them afterwards to make sure the state is up to date.
> >
> > That's easy to get wrong. The normal way of dealing with sitautions like
> > that is to use a helper which both updates the basic register value and the
> > derived state.
> >
> > So, do that.
> >
> > Signed-off-by: David Gibson <address@hidden>
>
> Reviewed-by: Cédric Le Goater <address@hidden>
>
> Although, I am not sure mmu-hash64.c is the right file for the
> ppc_store_lpcr()
> helper. This is minor.
It really isn't. I looked at moving it, but since the code we're
rearranging is already in that file it just made things messier.
Problem for another day.
--
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
signature.asc
Description: PGP signature
[Qemu-ppc] [PATCH 2/8] spapr: Clean up rtas_start_cpu() & rtas_stop_self(), David Gibson, 2018/05/03