From patchwork Fri Oct 5 03:46:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rashmica Gupta X-Patchwork-Id: 979271 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42RG0M0F5vz9s7W for ; Fri, 5 Oct 2018 13:46:59 +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="Y0iSlDOY"; 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 42RG0L5LBRzF3J0 for ; Fri, 5 Oct 2018 13:46:58 +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="Y0iSlDOY"; 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::442; helo=mail-pf1-x442.google.com; envelope-from=rashmica.g@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="Y0iSlDOY"; dkim-atps=neutral Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) (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 42RG0H0zwSzDqdv for ; Fri, 5 Oct 2018 13:46:54 +1000 (AEST) Received: by mail-pf1-x442.google.com with SMTP id r64-v6so4378249pfb.13 for ; Thu, 04 Oct 2018 20:46:54 -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=aGaiyTYmBqViww8ubCQvqPtrMxeS+0ZZKC76FoBeJEQ=; b=Y0iSlDOY7WFhGbYK66qmG5FzuJ3YsD/AKiUNQMJfRG2nhOYJUR+yhKeviymKcR1WXo o1pRf1BDycXnycZDpWlRQKMYIffyoJi4GZU29WrQk0Mr9GELbuifDGXLFA8nRvtJYbS9 uI+U8Gf4y5IHsN6kylfc0Pm3M6L76tcsHVGwJ7NFIo9JPpuhkoEixNWenTR0aPp5uLF6 nXZLvjixGixO+HlpDlr/mMz8aP6PLgq4jEgN9M0Q4W2ge+tU4jSKk+aIUHbqLJYl4WgG c1GMYijG4q7K1ALA0KF7mK1zHcB9KS5qGzGC5akDs5SJXDGQPDs4ZvParAzJ2VZe/6ws rtWw== 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=aGaiyTYmBqViww8ubCQvqPtrMxeS+0ZZKC76FoBeJEQ=; b=VsT6D7e3fHfJEV/P92HUh2lfIHbcnHjtkXUMzfPEc8JDEuNvbhvZY7hnFWRY9Hg3qC T2DSUoxl9r81CoKS80JNGqAYCATfM2vENUhhMq3FEJlm2bPcjoErgyhPnNskTHXV5x4Z MorHmLjf98OzMqtP3nJk3W2T9dkIt38AhsfPSsoGqm2xi8OnmJQAqzFeQ2BVar1gyIEY F+VBxYQKpFegV1UaxySqitCAy5se8cQj+61Ryk45ZxyLP0+zdD1/pCX+oNR5xLehKJdT EUDdEnaHyh2yxZ/L8KLmG+m2Jg16FJmY+i3VhFi6y6GcVnJx5a+gHPcshrvA0dM+m/LY klQw== X-Gm-Message-State: ABuFfoie/JOlZpK7EOH4OZ1fkdgCEb5+ATmz8vqMbeOcw8x8hIpS2wkH veGBQytJgsEIhyDR6MTi+RTt3Pn8uUI= X-Google-Smtp-Source: ACcGV63X+TO/gIU/ggX3mxBTZMaUkRDWoPT03nPfBXEhLon/4CtYTeXyjMKZb7lYqdX58XEOcdn4BQ== X-Received: by 2002:a63:4907:: with SMTP id w7-v6mr8373894pga.123.1538711213008; Thu, 04 Oct 2018 20:46:53 -0700 (PDT) Received: from rashmica.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id a1-v6sm12357488pfc.28.2018.10.04.20.46.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Oct 2018 20:46:52 -0700 (PDT) From: Rashmica Gupta To: pdbg@lists.ozlabs.org Date: Fri, 5 Oct 2018 13:46:45 +1000 Message-Id: <20181005034645.1597-1-rashmica.g@gmail.com> X-Mailer: git-send-email 2.14.4 Subject: [Pdbg] [PATCH] libpdbg/chip: add HEIR and HID register to ram_state_thread X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Rashmica Gupta --- libpdbg/chip.c | 7 +++++++ libpdbg/libpdbg.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/libpdbg/chip.c b/libpdbg/chip.c index 93eb3f0..5b67c7b 100644 --- a/libpdbg/chip.c +++ b/libpdbg/chip.c @@ -471,6 +471,13 @@ int ram_state_thread(struct pdbg_target *thread, struct thread_regs *regs) ram_getspr(thread, 307, ®s->hdar); printf("HDAR : 0x%016" PRIx64 "\n", regs->hdar); + ram_getspr(thread, 339, &value); + regs->heir = value; + printf("HEIR : 0x%016" PRIx32 "\n", regs->heir); + + ram_getspr(thread, 1008, ®s->hid); + printf("HID0 : 0x%016" PRIx64 "\n", regs->hid); + ram_getspr(thread, 314, ®s->hsrr0); printf("HSRR0 : 0x%016" PRIx64 "\n", regs->hsrr0); diff --git a/libpdbg/libpdbg.h b/libpdbg/libpdbg.h index c802020..1977c75 100644 --- a/libpdbg/libpdbg.h +++ b/libpdbg/libpdbg.h @@ -120,6 +120,8 @@ struct thread_regs { uint64_t hsrr0; uint64_t hsrr1; uint64_t hdec; + uint32_t heir; + uint64_t hid; uint64_t hsprg0; uint64_t hsprg1; uint64_t fscr;