From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag06e-0005A1-71 for qemu-devel@nongnu.org; Tue, 15 Mar 2016 21:18:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ag06c-00072t-GM for qemu-devel@nongnu.org; Tue, 15 Mar 2016 21:18:36 -0400 Date: Wed, 16 Mar 2016 12:14:46 +1100 From: David Gibson Message-ID: <20160316011446.GY9032@voom> References: <1457974600-13828-1-git-send-email-clg@fr.ibm.com> <1457974600-13828-17-git-send-email-clg@fr.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="I/wet25DnWlSyk1C" Content-Disposition: inline In-Reply-To: <1457974600-13828-17-git-send-email-clg@fr.ibm.com> Subject: Re: [Qemu-devel] [PATCH 16/17] ppc: Add dummy CIABR SPR List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?C=E9dric?= Le Goater Cc: Thomas Huth , qemu-ppc@nongnu.org, qemu-devel@nongnu.org --I/wet25DnWlSyk1C Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 14, 2016 at 05:56:39PM +0100, C=E9dric Le Goater wrote: > From: Benjamin Herrenschmidt >=20 > We should implement HW breakpoint/watchpoint, qemu supports them... >=20 > Signed-off-by: Benjamin Herrenschmidt Reviewed-by: David Gibson But I'm assuming 2.7, not 2.6. > --- > target-ppc/cpu.h | 1 + > target-ppc/translate_init.c | 5 +++++ > 2 files changed, 6 insertions(+) >=20 > diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h > index 5203cc6a3bfb..9e1ef10b7dc6 100644 > --- a/target-ppc/cpu.h > +++ b/target-ppc/cpu.h > @@ -1400,6 +1400,7 @@ static inline int cpu_mmu_index (CPUPPCState *env, = bool ifetch) > #define SPR_DAWR (0x0B4) > #define SPR_MPPR (0x0B8) > #define SPR_RPR (0x0BA) > +#define SPR_CIABR (0x0BB) > #define SPR_DAWRX (0x0BC) > #define SPR_HFSCR (0x0BE) > #define SPR_VRSAVE (0x100) > diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c > index cfb1bc088950..f88bdf7b3cd1 100644 > --- a/target-ppc/translate_init.c > +++ b/target-ppc/translate_init.c > @@ -7603,6 +7603,11 @@ static void gen_spr_book3s_207_dbg(CPUPPCState *en= v) > SPR_NOACCESS, SPR_NOACCESS, > &spr_read_generic, &spr_write_generic, > KVM_REG_PPC_DAWRX, 0x00000000); > + spr_register_kvm_hv(env, SPR_CIABR, "CIABR", > + SPR_NOACCESS, SPR_NOACCESS, > + SPR_NOACCESS, SPR_NOACCESS, > + &spr_read_generic, &spr_write_generic, > + KVM_REG_PPC_CIABR, 0x00000000); > } > =20 > static void gen_spr_970_dbg(CPUPPCState *env) --=20 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 --I/wet25DnWlSyk1C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJW6LOGAAoJEGw4ysog2bOSsYsP/3sE33IpY6qSOpyCJfBIjNh0 aJxPfuT2idJ2Yzxh9gndBe/QjfmRgf7fHHqvW0/cuBwxaLH40RIqN4ZCfHzvO0XR HF2VO/Z5hdhvpw+g/eFETHML/ih7+dnk7XtIip6k/R+pBzPIR6q9xXCbdIxNfIRR thDTnN253Axs8aMcH7GcSIP2SKom7UZWeOJ96TGSp6sdVL5D7yQwj3VqKj4NzDnS ghbmcye5b82kDbh2Odle5XKecRjjxZikwBqCMIvGXqeoiD7Wd2oFqKipmJ6Jro/7 czi3v+xK28vTPDVu1hqajItARZYt6Ns9N3YrKl8nypap/WA9AP2XloDhr4Wa0Hs7 4JM6K6jeqK5iRAYvHr2ZCK/R5hLLYwXV2hw8W6F6S0y6cH00jz/a8GtncouF9yfs MOARHzvaM/fSIZ52E7EEoyfe1ZxoJnMbRkSObY8zbXiwZquaCkk449DKnhtJJQbo NSeJbCc05EAEFHoX0cc9+XCt5ur7kf2uEELBY9Zyr2oR+YS3Wt1nGS6XoW91pPRV FAc4hJFrberh29DJmb9yMVKamSuyj0TSutusSUnujNkGHi7UQv/UOTin7Rm+9MUB 6fF29v2Q6sDD0gdh6/uve67Ht9EJv9yyU0WYchpxc7iHchYqa0hfZIXE3vJ9wF1G 4pW0YWpHUEjTsiK+wA6l =McrR -----END PGP SIGNATURE----- --I/wet25DnWlSyk1C--