On 11.11.2015 01:28, Benjamin Herrenschmidt wrote: > Signed-off-by: Benjamin Herrenschmidt <b...@kernel.crashing.org> > --- > target-ppc/cpu.h | 1 + > target-ppc/translate_init.c | 4 ++++ > 2 files changed, 5 insertions(+) > > diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h > index bf8892a..aa328a7 100644 > --- a/target-ppc/cpu.h > +++ b/target-ppc/cpu.h > @@ -1361,6 +1361,7 @@ static inline int cpu_mmu_index (CPUPPCState *env, bool > ifetch) > #define SPR_SRR1 (0x01B) > #define SPR_CFAR (0x01C) > #define SPR_AMR (0x01D) > +#define SPR_ACOP (0x01F) > #define SPR_BOOKE_PID (0x030) > #define SPR_BOOKE_DECAR (0x036) > #define SPR_BOOKE_CSRR0 (0x03A) > diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c > index b5fd076..4ec532c 100644 > --- a/target-ppc/translate_init.c > +++ b/target-ppc/translate_init.c > @@ -8226,6 +8226,10 @@ static void gen_spr_power8_book4(CPUPPCState *env) > &spr_read_generic, SPR_NOACCESS, > &spr_read_generic, &spr_write_generic, > 0); > + spr_register(env, SPR_ACOP, "ACOP", > + SPR_NOACCESS, SPR_NOACCESS, > + &spr_read_generic, &spr_write_generic, > + 0); > #endif > }
I think this patch should be merged with the next one (where you change the ACOP hunk in translate_init.c again. Thomas