aboutsummaryrefslogtreecommitdiff
path: root/src/target/target_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/target_type.h')
-rw-r--r--src/target/target_type.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/target/target_type.h b/src/target/target_type.h
index a8928911..95745c9e 100644
--- a/src/target/target_type.h
+++ b/src/target/target_type.h
@@ -284,6 +284,11 @@ struct target_type {
*/
int (*profiling)(struct target *target, uint32_t *samples,
uint32_t max_num_samples, uint32_t *num_samples, uint32_t seconds);
+
+ /* Return the number of address bits this target supports. This will
+ * typically be 32 for 32-bit targets, and 64 for 64-bit targets. If not
+ * implemented, it's assumed to be 32. */
+ unsigned (*address_bits)(struct target *target);
};
#endif /* OPENOCD_TARGET_TARGET_TYPE_H */