From patchwork Fri Jul 1 06:41:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 642843 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rgnCC4kSxz9sds for ; Fri, 1 Jul 2016 16:52:07 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.b=CfRACSCw; dkim-atps=neutral Received: from localhost ([::1]:53996 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIsJ3-0008Ru-C3 for incoming@patchwork.ozlabs.org; Fri, 01 Jul 2016 02:52:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIs7i-0003ax-MF for qemu-devel@nongnu.org; Fri, 01 Jul 2016 02:40:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIs7g-0003GD-Cl for qemu-devel@nongnu.org; Fri, 01 Jul 2016 02:40:21 -0400 Received: from ozlabs.org ([2401:3900:2:1::2]:59490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIs7g-0003FM-1G; Fri, 01 Jul 2016 02:40:20 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 3rgmxS57y7z9t18; Fri, 1 Jul 2016 16:40:12 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1467355212; bh=2ifpYaDtTZKdWKK7dT3nUpsidHltP99tHYiA72HZLLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CfRACSCwK+ep86N9YGI/UZBQGOvJ9QtpKmTPpL0KVbQAbglteUOBipYNdSAYKuveb XhadjdY50MOdw8ssG1wl59sFWNEkwVE0EsMBQwo2Ycvftc0+b5zYdiN2vEgLEhw5N5 Tb5CE3NU1puMvtUGz5/EsumNeIZdeRAi35Q8Pww0= From: David Gibson To: peter.maydell@linaro.org Date: Fri, 1 Jul 2016 16:41:44 +1000 Message-Id: <1467355319-28406-9-git-send-email-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1467355319-28406-1-git-send-email-david@gibson.dropbear.id.au> References: <1467355319-28406-1-git-send-email-david@gibson.dropbear.id.au> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2401:3900:2:1::2 Subject: [Qemu-devel] [PULL 08/23] ppc: Print HSRR0/HSRR1 in "info registers" X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: agraf@suse.de, qemu-devel@nongnu.org, qemu-ppc@nongnu.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , David Gibson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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édric Le Goater Signed-off-by: David Gibson --- target-ppc/translate.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 2f1c591..49fe761 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -11407,6 +11407,13 @@ void ppc_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, env->spr[SPR_SPRG4], env->spr[SPR_SPRG5], env->spr[SPR_SPRG6], env->spr[SPR_SPRG7]); +#if defined(TARGET_PPC64) + if (env->excp_model == POWERPC_EXCP_POWER7 || + env->excp_model == 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 == POWERPC_EXCP_BOOKE) { cpu_fprintf(f, "CSRR0 " TARGET_FMT_lx " CSRR1 " TARGET_FMT_lx " MCSRR0 " TARGET_FMT_lx " MCSRR1 " TARGET_FMT_lx "\n",