X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Farmv4_5.h;h=89879163b8a3e5ddb7153d4c03f2599cefd32235;hp=4d87c083e1f98195ff025d6dd3316c3bdab95809;hb=74d09617b927ed7011098d5a65087dee1ef1e87a;hpb=4b20ed6b5cf6bc73471dec7d1604a4684d1fc2ca diff --git a/src/target/armv4_5.h b/src/target/armv4_5.h index 4d87c083e1..89879163b8 100644 --- a/src/target/armv4_5.h +++ b/src/target/armv4_5.h @@ -29,6 +29,7 @@ #include "register.h" #include "target.h" #include "log.h" +#include "etm.h" typedef enum armv4_5_mode { @@ -86,7 +87,7 @@ enum typedef struct arm { int common_magic; - reg_cache_t *core_cache; + struct reg_cache *core_cache; int /* armv4_5_mode */ core_mode; enum armv4_5_state core_state; @@ -118,23 +119,23 @@ static inline bool is_arm(struct arm *arm) return arm && arm->common_magic == ARMV4_5_COMMON_MAGIC; } -typedef struct armv4_5_algorithm_s +struct armv4_5_algorithm { int common_magic; enum armv4_5_mode core_mode; enum armv4_5_state core_state; -} armv4_5_algorithm_t; +}; -typedef struct armv4_5_core_reg_s +struct armv4_5_core_reg { int num; enum armv4_5_mode mode; target_t *target; armv4_5_common_t *armv4_5_common; -} armv4_5_core_reg_t; +}; -reg_cache_t* armv4_5_build_reg_cache(target_t *target, +struct reg_cache* armv4_5_build_reg_cache(target_t *target, armv4_5_common_t *armv4_5_common); /* map psr mode bits to linear number */ @@ -182,8 +183,8 @@ int armv4_5_register_commands(struct command_context_s *cmd_ctx); int armv4_5_init_arch_info(target_t *target, armv4_5_common_t *armv4_5); int armv4_5_run_algorithm(struct target_s *target, - int num_mem_params, mem_param_t *mem_params, - int num_reg_params, reg_param_t *reg_params, + int num_mem_params, struct mem_param *mem_params, + int num_reg_params, struct reg_param *reg_params, uint32_t entry_point, uint32_t exit_point, int timeout_ms, void *arch_info);