Message ID | 20191014051748.20190-2-amitay@ozlabs.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> 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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46s6K615lCz9sPp for <incoming@patchwork.ozlabs.org>; Mon, 14 Oct 2019 16:18:18 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="nbv/eMqn"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46s6K54s0PzDqXK for <incoming@patchwork.ozlabs.org>; Mon, 14 Oct 2019 16:18:17 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46s6Jq6G74zDqW9 for <pdbg@lists.ozlabs.org>; Mon, 14 Oct 2019 16:18:03 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="nbv/eMqn"; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 46s6Jp6VcVz9sPj; Mon, 14 Oct 2019 16:18:02 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1571030283; bh=Rs+wkkCI40JOx7ZW6SsysJbjIH+YJaDMVW/wV5/6r8E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nbv/eMqnXMsGs2lfjFuasTCiZxR0j5DWngrpkgmVCna+HidpdCPt+Xt/2QRwnH53V YQfoo4J1ukw6MmpHx91HdIUHPq5XuUTvOb4qFrdrpM5mEJJRc9NH/9Mz4QPaU5zqrj zGczCmFTBKN1Em1kEMcaPcMDAs/fILJA1jVPMaiFMEHbDVZyqJYFlv9cL2e/47H4J9 oZJuGKK3jCtyl22IW5CSxlbQpPRpleusYyQ0LAPrimjZa0M5XL/4YeH93758YxQZYq 4NHsjUbwdy0v/NFZDoeAMvf9QQ829ilIxzbn4Vr6F1KGm235UmS1DRXwHq6n6yjbTV k+vSoRfawHj6A== From: Amitay Isaacs <amitay@ozlabs.org> To: pdbg@lists.ozlabs.org Date: Mon, 14 Oct 2019 16:17:19 +1100 Message-Id: <20191014051748.20190-2-amitay@ozlabs.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191014051748.20190-1-amitay@ozlabs.org> References: <20191014051748.20190-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v5 01/30] libpdbg: Do not assume device tree hierarchy 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" <pdbg.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/pdbg>, <mailto:pdbg-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/pdbg/> List-Post: <mailto:pdbg@lists.ozlabs.org> List-Help: <mailto:pdbg-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/pdbg>, <mailto:pdbg-request@lists.ozlabs.org?subject=subscribe> Cc: Amitay Isaacs <amitay@ozlabs.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" <pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
Add system device tree to libpdbg
|
expand
|
diff --git a/libpdbg/p9chip.c b/libpdbg/p9chip.c index f86a529..37cc93b 100644 --- a/libpdbg/p9chip.c +++ b/libpdbg/p9chip.c @@ -80,14 +80,14 @@ static uint64_t thread_read(struct thread *thread, uint64_t addr, uint64_t *data) { - struct pdbg_target *chip = require_target_parent(&thread->target); + struct pdbg_target *chip = pdbg_target_require_parent("core", &thread->target); return pib_read(chip, addr, data); } static uint64_t thread_write(struct thread *thread, uint64_t addr, uint64_t data) { - struct pdbg_target *chip = require_target_parent(&thread->target); + struct pdbg_target *chip = pdbg_target_require_parent("core", &thread->target); return pib_write(chip, addr, data); }