diff options
author | Alistair Popple <alistair@popple.id.au> | 2018-04-27 14:08:51 +1000 |
---|---|---|
committer | Alistair Popple <alistair@popple.id.au> | 2018-04-27 14:08:51 +1000 |
commit | ad058f045c4403346c92ddd9115397a939b44a79 (patch) | |
tree | 83659a06243db24d7d860c59af7d343bb02bd03a /libpdbg/target.h | |
parent | d74029ccdd3bb680e3753a07df4ff60c3e18aea2 (diff) | |
download | pdbg-ad058f045c4403346c92ddd9115397a939b44a79.tar.gz pdbg-ad058f045c4403346c92ddd9115397a939b44a79.zip |
libpdbg: Add support for getring on POWER9
Add basic support for a getring operation on POWER9.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg/target.h')
-rw-r--r-- | libpdbg/target.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpdbg/target.h b/libpdbg/target.h index dc91d68..eba26cb 100644 --- a/libpdbg/target.h +++ b/libpdbg/target.h @@ -157,5 +157,7 @@ struct thread { /* Place holder for chiplets which we just want translation for */ struct chiplet { struct pdbg_target target; + int (*getring)(struct chiplet *, uint64_t, int64_t, uint32_t[]); }; +#define target_to_chiplet(x) container_of(x, struct chiplet, target) #endif |