From patchwork Fri Jun 1 06:30:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 923779 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 ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40xvf45Hk7z9s0W for ; Fri, 1 Jun 2018 16:33:00 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (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="wtPxeCh0"; 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 40xvf43bh0zDrph for ; Fri, 1 Jun 2018 16:33:00 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="wtPxeCh0"; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40xvc42cPpzDrbn for ; Fri, 1 Jun 2018 16:31:16 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (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="wtPxeCh0"; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 40xvc363pcz9rvt; Fri, 1 Jun 2018 16:31:15 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1527834676; bh=XxzB6ezHzf56HlADj5vzNHk43r4NIsIjQfWj4hW562s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wtPxeCh0tiaRV2U0PaI6DIciL63UM0qG8NXDYVBxOZvsOWCaKGEKccxTU3BuxJgpP isztojW+iG07l4wWmQMFoZaRPrIWLpsXjRro8xINwYPCrxwABfcfxScA+7IHyW9hxu ws4ZSXpulwS0YIZCM7DZkaAgkiOSa6JUyZtLpIrsEz/Ovj7eIqGUtyRahfr4InXSJX Mn17RtAnALY+vEM6IWWTX/5V2TLhHKQxIAjr4ivWBAx9fl9HElsq5xZdByUcZ/1Qhm jwGDem5Ltk/9WWyQfUiFF7r/aZYhh+tzh88OhGucny0Mofr3C1Dq85X1Oug/KEH+Cp YQVQD+590yaew== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Fri, 1 Jun 2018 16:30:48 +1000 Message-Id: <20180601063050.19286-6-amitay@ozlabs.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180601063050.19286-1-amitay@ozlabs.org> References: <20180601063050.19286-1-amitay@ozlabs.org> Subject: [Pdbg] [PATCH v2 5/7] fake: Add fake targets for testing X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.26 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: Amitay Isaacs MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs Reviewed-by: Alistair Popple --- libpdbg/fake.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/libpdbg/fake.c b/libpdbg/fake.c index ec03ccf..58e7e18 100644 --- a/libpdbg/fake.c +++ b/libpdbg/fake.c @@ -64,3 +64,21 @@ static struct pib fake_pib = { .write = fake_pib_write, }; DECLARE_HW_UNIT(fake_pib); + +static struct core fake_core = { + .target = { + .name = "Fake Core", + .compatible = "ibm,fake-core", + .class = "core", + }, +}; +DECLARE_HW_UNIT(fake_core); + +static struct thread fake_thread = { + .target = { + .name = "Fake Thread", + .compatible = "ibm,fake-thread", + .class = "thread", + }, +}; +DECLARE_HW_UNIT(fake_thread);