diff options
author | Alistair Popple <alistair@popple.id.au> | 2016-12-08 13:09:06 +1100 |
---|---|---|
committer | Alistair Popple <alistair@popple.id.au> | 2016-12-08 13:22:01 +1100 |
commit | 61c171cecf1b38e902d12c2cb4fc0e8903a0600d (patch) | |
tree | f72ba1f6610e3e0c9719893834a51566a073e1a9 /libpdbg/chip.c | |
parent | ac1ba1adf55332507e4e25b7e57bbc5dda51bdca (diff) | |
download | pdbg-61c171cecf1b38e902d12c2cb4fc0e8903a0600d.tar.gz pdbg-61c171cecf1b38e902d12c2cb4fc0e8903a0600d.zip |
libpdbg/chip.c: Correct detection of chip type
The processor chip type was not being detected correctly resulting in
attempts to probe unsupported system components.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg/chip.c')
-rw-r--r-- | libpdbg/chip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpdbg/chip.c b/libpdbg/chip.c index aededba..8abc131 100644 --- a/libpdbg/chip.c +++ b/libpdbg/chip.c @@ -515,7 +515,7 @@ int chiplet_target_probe(struct target *processor, struct target *targets, int m int i, count = 0, rc = 0; /* P9 chiplets are not currently supported */ - if (target->chip_type == CHIP_P9) + if (processor->chip_type == CHIP_P9) return 0; for (i = 0; i <= 0xf && i < max_target_count; i++) { |