diff options
| author | Amitay Isaacs <amitay@ozlabs.org> | 2018-06-01 16:30:48 +1000 |
|---|---|---|
| committer | Alistair Popple <alistair@popple.id.au> | 2018-06-04 15:20:34 +1000 |
| commit | d591c94ec35c03d8ce806ec854307dfe7598122b (patch) | |
| tree | 27e3ccdc20c3a8d9b9cd2c292babc513580a6ca4 | |
| parent | 312abcbf047ad384f15fdee007c96e6cc9298f2e (diff) | |
| download | pdbg-d591c94ec35c03d8ce806ec854307dfe7598122b.tar.gz pdbg-d591c94ec35c03d8ce806ec854307dfe7598122b.zip | |
fake: Add fake targets for testing
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
| -rw-r--r-- | libpdbg/fake.c | 18 |
1 files changed, 18 insertions, 0 deletions
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); |

