From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abDII-0006qF-My for qemu-devel@nongnu.org; Wed, 02 Mar 2016 15:22:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abDID-0006A2-PB for qemu-devel@nongnu.org; Wed, 02 Mar 2016 15:22:50 -0500 References: <1447201710-10229-1-git-send-email-benh@kernel.crashing.org> <1447201710-10229-72-git-send-email-benh@kernel.crashing.org> From: Thomas Huth Message-ID: <56D74B92.1080409@redhat.com> Date: Wed, 2 Mar 2016 21:22:42 +0100 MIME-Version: 1.0 In-Reply-To: <1447201710-10229-72-git-send-email-benh@kernel.crashing.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 71/77] ppc: Add dummy ACOP SPR List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Herrenschmidt , qemu-ppc@nongnu.org Cc: qemu-devel@nongnu.org On 11.11.2015 01:28, Benjamin Herrenschmidt wrote: > Signed-off-by: Benjamin Herrenschmidt > --- > 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