aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/target/arm_adi_v5.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h
index 17365bd..ea71551 100644
--- a/src/target/arm_adi_v5.h
+++ b/src/target/arm_adi_v5.h
@@ -253,7 +253,7 @@ struct adiv5_dap {
/* Control config */
uint32_t dp_ctrl_stat;
- struct adiv5_ap ap[256];
+ struct adiv5_ap ap[DP_APSEL_MAX + 1];
/* The current manually selected AP by the "dap apsel" command */
uint32_t apsel;