On Mon, May 24, 2021 at 10:32:18AM -0700, Richard Henderson wrote: > On 5/24/21 6:59 AM, Bruno Larsen (billionai) wrote: > > The write calback decision when registering the MAS SPR has been turned > > into a ternary operation, rather than an if-then-else block. > > > > Signed-off-by: Bruno Larsen (billionai) > > Suggested-by: Richard Henderson > > --- > > target/ppc/cpu_init.c | 9 +++------ > > 1 file changed, 3 insertions(+), 6 deletions(-) > > The commit message here says what, but it doesn't say why. Right, and "why" is generally the more important thing to be in a commit message. > The important part of the change is making the references to > spr_write_generic* conditional, via SYS_ARG(), so that the code compiles out > for !CONFIG_TCG. > > The actual code change is fine: > Reviewed-by: Richard Henderson > > > r~ > -- 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