From patchwork Fri Jul 20 13:06:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 946894 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41XB3K3jMSz9s7c for ; Fri, 20 Jul 2018 23:06:21 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ab+gDQPo"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41XB3J6kh8zDqDJ for ; Fri, 20 Jul 2018 23:06:20 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ab+gDQPo"; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::541; helo=mail-pg1-x541.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ab+gDQPo"; dkim-atps=neutral Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41XB39363hzDqCG for ; Fri, 20 Jul 2018 23:06:11 +1000 (AEST) Received: by mail-pg1-x541.google.com with SMTP id g2-v6so6867385pgs.6 for ; Fri, 20 Jul 2018 06:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=aQFb1PbNDoJ2h2z5AWRUHXFUtgv43xcByvf3dzoma5o=; b=Ab+gDQPoqTy4LYH9xmcNxq2w+ATjFXJQ7OzmlSEKSg7OV/O7vSOZ21X+7+SRySxHDO jN7t9gFo+1Xbm4uVgoqnU/tklcvHTEPEJMfMufbBzzVeIDP/wtlYipg1yyF0yjpErDMN dFZmJGIcG4iGVItIn/SVkcoUNrTJCUaP4BigYMqWh3rEnNKL+P72bPNjXP0ym7NhFUdL iMHz+JAZIyb0ey3ZwXsVe69S9EKieAUyhcMGaHxsT7hi8AtLr6LlTKJfDFhj9p8287Yf 3xWTMV+OauV6F+FgZZkFIELQWXbuQC7O0CVbGacScTVumDQWZMs/UFbEywQVQq1WyHQh Tqng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=aQFb1PbNDoJ2h2z5AWRUHXFUtgv43xcByvf3dzoma5o=; b=lFiZFnX3qP+nSCCqxT2BvnM/M5/CfibdUFZRULje1fnAPZHv6NxAJ//467ED8epsRl kAul/XTOCSew79qEJFKDJVcP5b7PEFwQt3HxF3mZQ05s22OjZosQDvtBNjQ4zyA3wXgi 1LFN+JwyHqYwyLtvKzMDppCdVhKc7jMvKqLs35Nj/zD6t3j8jptrDdow3rdbcYNoYwC9 3mOcdsPzDydS+6AfLXLCqlMjR+WjD85D/anNgrafPP4TwERa+8Uw4jA/lkBP3cGQTCUC +4rBtFbLrSssEZJ3Ya/g1lh1ZcoyVmKCc4gRjhrojvkc3U9gATuIUwJ+nX2pIuE/CRGq pIAA== X-Gm-Message-State: AOUpUlF6tcWoqV4eiap6yqa1jykSRm2ixsu0EOiF+Bd1M+yOtETqMYaQ KX/mIkVxiP5Fc4TuhxVcvtq+zBRe X-Google-Smtp-Source: AAOMgpeQ/zCr3nBKBX57n40Lcj7kVPjlMN3ZC8Ra2TwGo9u60s0LcLuGu4dAbZlD675AFsEeVN3a/A== X-Received: by 2002:a62:a05:: with SMTP id s5-v6mr2115584pfi.147.1532091969266; Fri, 20 Jul 2018 06:06:09 -0700 (PDT) Received: from roar.au.ibm.com ([61.69.188.107]) by smtp.gmail.com with ESMTPSA id h10-v6sm4485431pfj.78.2018.07.20.06.06.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jul 2018 06:06:08 -0700 (PDT) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Fri, 20 Jul 2018 23:06:00 +1000 Message-Id: <20180720130600.16216-1-npiggin@gmail.com> X-Mailer: git-send-email 2.17.0 Subject: [Pdbg] [PATCH] regs: print correct PTCR register X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nicholas Piggin MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Nicholas Piggin --- libpdbg/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpdbg/chip.c b/libpdbg/chip.c index f04bb15..079592c 100644 --- a/libpdbg/chip.c +++ b/libpdbg/chip.c @@ -387,7 +387,7 @@ int ram_state_thread(struct pdbg_target *thread, struct thread_regs *regs) printf("LPCR : 0x%016" PRIx64 "\n", regs->lpcr); ram_getspr(thread, 464, ®s->ptcr); - printf("PTCR : 0x%016" PRIx64 "\n", regs->lpcr); + printf("PTCR : 0x%016" PRIx64 "\n", regs->ptcr); ram_getspr(thread, 319, ®s->lpidr); printf("LPIDR : 0x%016" PRIx64 "\n", regs->lpidr);