X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Ftarget_type.h;h=95745c9ebd3cacfe660662504220f3c55a606e24;hp=a8928911f65661453b0550416a25c222aa072f64;hb=57e30102ea440d77aa001e26eb901d0cbb305a30;hpb=85ba2dc4c6ab4c91f4461c2853660cc2cb9e2623 diff --git a/src/target/target_type.h b/src/target/target_type.h index a8928911f6..95745c9ebd 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 */