summaryrefslogtreecommitdiffstats
path: root/libpdbg/chip.c
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2016-12-02 17:33:32 +1100
committerAlistair Popple <alistair@popple.id.au>2016-12-02 17:40:10 +1100
commit3172dd9a17dc9aabb8dc6438b849db148728fb0c (patch)
treee5ae2870566338439835e42614e23018592af83a /libpdbg/chip.c
parent23410a93cc70009094cbab22fda4063fa6879962 (diff)
downloadpdbg-3172dd9a17dc9aabb8dc6438b849db148728fb0c.tar.gz
pdbg-3172dd9a17dc9aabb8dc6438b849db148728fb0c.zip
Add detection of chip types
Support detecting different chip types so we enable chip type dependent behaviour. Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg/chip.c')
-rw-r--r--libpdbg/chip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpdbg/chip.c b/libpdbg/chip.c
index 14c92b3..aededba 100644
--- a/libpdbg/chip.c
+++ b/libpdbg/chip.c
@@ -514,6 +514,10 @@ int chiplet_target_probe(struct target *processor, struct target *targets, int m
struct target *target = targets;
int i, count = 0, rc = 0;
+ /* P9 chiplets are not currently supported */
+ if (target->chip_type == CHIP_P9)
+ return 0;
+
for (i = 0; i <= 0xf && i < max_target_count; i++) {
if (i == 0 || i == 7 || i == 8 || i == 0xf)
/* 0, 7, 8 & 0xf are reserved */
OpenPOWER on IntegriCloud