[Pdbg] [PATCH v2 5/7] fake: Add fake targets for testing
Alistair Popple
alistair at popple.id.au
Mon Jun 4 15:15:54 AEST 2018
Reviewed-by: Alistair Popple <alistair at popple.id.au>
On Friday, 1 June 2018 4:30:48 PM AEST Amitay Isaacs wrote:
> 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);
>
More information about the Pdbg
mailing list