Message ID | 20191014051748.20190-8-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 [IPv6:2401:3900:2:1::3]) (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 46s6KY423Fz9sPj for <incoming@patchwork.ozlabs.org>; Mon, 14 Oct 2019 16:18:41 +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="G84R5rgE"; 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 46s6KY2dYXzDqWY for <incoming@patchwork.ozlabs.org>; Mon, 14 Oct 2019 16:18:41 +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 46s6Jv18XrzDqW5 for <pdbg@lists.ozlabs.org>; Mon, 14 Oct 2019 16:18:07 +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="G84R5rgE"; 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 46s6Jt5C7Zz9sPp; Mon, 14 Oct 2019 16:18:06 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1571030286; bh=zrZDAnfL+W5MGLCKfpIqenfLFIpHow9ox+hHAq4DiZs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G84R5rgEsPzOYa6mi87PmWpObakI/FQH/yt5kTyNOWlwGcjsJ+qqNL8II6dIc1p/g v6XrCCOi4L39UCscVE1xYoz/c6pRP9Ovt2FzI4SqzekPwDD9jmnfnHPJPfjf9xzWzA unbB0jLyY8FCoUa6w4rcv20BWCtfwN8NslMlBDZLejMcRvcde5FGJ037+UtaZ/6xP1 muRtNRF7XzwC2aGtnAebVP1DeaOwWw2A4DvsvNvNpQ7z/BSEZx9gGo5NFjddxv4/i9 k5Ddeci9/pN8D+0vc526u3T6TrrKeFNebCzW9Qr6cGlGK4TEaBUVR5I67VPk/JxKXM DOMGEKq3wlrNw== From: Amitay Isaacs <amitay@ozlabs.org> To: pdbg@lists.ozlabs.org Date: Mon, 14 Oct 2019 16:17:25 +1100 Message-Id: <20191014051748.20190-8-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 07/30] libpdbg: Add a function to check if a target is virtual 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/target.c b/libpdbg/target.c index f803ab2..9110b81 100644 --- a/libpdbg/target.c +++ b/libpdbg/target.c @@ -467,3 +467,9 @@ void pdbg_target_priv_set(struct pdbg_target *target, void *priv) { target->priv = priv; } + +/* For virtual nodes, compatible property is not set */ +bool target_is_virtual(struct pdbg_target *target) +{ + return (!target->compatible); +} diff --git a/libpdbg/target.h b/libpdbg/target.h index 71ffd2f..f5769ea 100644 --- a/libpdbg/target.h +++ b/libpdbg/target.h @@ -64,5 +64,6 @@ extern struct list_head target_classes; const char *pdbg_get_backend_option(void); struct sbefifo *pib_to_sbefifo(struct pdbg_target *target); +bool target_is_virtual(struct pdbg_target *target); #endif