X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Ftarget_type.h;h=70eb96253754a457879b13806ce99e1aade98c9b;hb=183765707fb4d819b790b9431b83a9bf637fadc5;hp=15cf66be85bf18ef8c576d342c112e82ecefe764;hpb=177bbd8891ae737ea7f8c0791a6236f72cedee40;p=openocd.git diff --git a/src/target/target_type.h b/src/target/target_type.h index 15cf66be85..70eb962537 100644 --- a/src/target/target_type.h +++ b/src/target/target_type.h @@ -26,7 +26,7 @@ #ifndef TARGET_TYPE_H #define TARGET_TYPE_H -#include "types.h" +#include struct target; @@ -213,6 +213,13 @@ struct target_type int (*mmu)(struct target *target, int *enabled); + /* after reset is complete, the target can check if things are properly set up. + * + * This can be used to check if e.g. DCC memory writes have been enabled for + * arm7/9 targets, which they really should except in the most contrived + * circumstances. + */ + int (*check_reset)(struct target *target); }; #endif // TARGET_TYPE_H