Received: from eggs.gnu.org ([2001:4830:134:3::10]:50342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHQTA-0008R0-3T for qemu-devel@nongnu.org; Mon, 27 Jun 2016 02:56:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHQT5-0005Ye-2s for qemu-devel@nongnu.org; Mon, 27 Jun 2016 02:56:31 -0400 Received: from 3.mo177.mail-out.ovh.net ([46.105.36.172]:35520) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHQT4-0005YW-Su for qemu-devel@nongnu.org; Mon, 27 Jun 2016 02:56:27 -0400 Received: from player699.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo177.mail-out.ovh.net (Postfix) with ESMTP id 4B62FFF92E4 for ; Mon, 27 Jun 2016 08:56:26 +0200 (CEST) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Mon, 27 Jun 2016 08:55:21 +0200 Message-Id: <1467010521-6106-9-git-send-email-clg@kaod.org> In-Reply-To: <1467010521-6106-1-git-send-email-clg@kaod.org> References: <1467010521-6106-1-git-send-email-clg@kaod.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 8/8] ppc: Print HSRR0/HSRR1 in "info registers" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-ppc@nongnu.org Cc: David Gibson , Alexander Graf , qemu-devel@nongnu.org, Benjamin Herrenschmidt , Cedric Le Goater From: Benjamin Herrenschmidt They are generally useful when debugging HV mode stuff Signed-off-by: Benjamin Herrenschmidt [clg: fixed checkpatch.pl errors ] Signed-off-by: C=C3=A9dric Le Goater --- target-ppc/translate.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 2f1c59166eda..49fe76140708 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -11407,6 +11407,13 @@ void ppc_cpu_dump_state(CPUState *cs, FILE *f, f= printf_function cpu_fprintf, env->spr[SPR_SPRG4], env->spr[SPR_SPRG5], env->spr[SPR_SPRG6], env->spr[SPR_SPRG7]); =20 +#if defined(TARGET_PPC64) + if (env->excp_model =3D=3D POWERPC_EXCP_POWER7 || + env->excp_model =3D=3D POWERPC_EXCP_POWER8) { + cpu_fprintf(f, "HSRR0 " TARGET_FMT_lx " HSRR1 " TARGET_FMT_lx "\= n", + env->spr[SPR_HSRR0], env->spr[SPR_HSRR1]); + } +#endif if (env->excp_model =3D=3D POWERPC_EXCP_BOOKE) { cpu_fprintf(f, "CSRR0 " TARGET_FMT_lx " CSRR1 " TARGET_FMT_lx " MCSRR0 " TARGET_FMT_lx " MCSRR1 " TARGET_FMT_lx= "\n", --=20 2.1.4