diff mbox series

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

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

Commit Message

Amitay Isaacs June 1, 2018, 6:30 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 libpdbg/fake.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

Comments

Alistair Popple June 4, 2018, 5:15 a.m. UTC | #1
Reviewed-by: Alistair Popple <alistair@popple.id.au>

On Friday, 1 June 2018 4:30:48 PM AEST Amitay Isaacs wrote:
> Signed-off-by: Amitay Isaacs <amitay@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);
>
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);