[Pdbg] [PATCH v2 5/7] fake: Add fake targets for testing

Amitay Isaacs amitay at ozlabs.org
Fri Jun 1 16:30:48 AEST 2018


Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
 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);
-- 
2.17.0



More information about the Pdbg mailing list