diff mbox series

[5/6] fake: Add fake targets for testing

Message ID 20180525045240.24196-6-amitay@ozlabs.org
State Superseded
Headers show
Series Overhaul target selection | expand

Commit Message

Amitay Isaacs May 25, 2018, 4:52 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 libpdbg/fake.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
diff mbox series

Patch

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);