armv4_5_algorithm_t -> struct armv4_5_algorithm
Remove misleading typedef and redundant suffix from struct armv4_5_algorithm.
This commit is contained in:
@@ -2690,7 +2690,7 @@ int arm7_9_bulk_write_memory(target_t *target, uint32_t address, uint32_t count,
|
||||
}
|
||||
}
|
||||
|
||||
armv4_5_algorithm_t armv4_5_info;
|
||||
struct armv4_5_algorithm armv4_5_info;
|
||||
struct reg_param reg_params[1];
|
||||
|
||||
armv4_5_info.common_magic = ARMV4_5_COMMON_MAGIC;
|
||||
@@ -2724,7 +2724,7 @@ int arm7_9_bulk_write_memory(target_t *target, uint32_t address, uint32_t count,
|
||||
int arm7_9_checksum_memory(struct target_s *target, uint32_t address, uint32_t count, uint32_t* checksum)
|
||||
{
|
||||
working_area_t *crc_algorithm;
|
||||
armv4_5_algorithm_t armv4_5_info;
|
||||
struct armv4_5_algorithm armv4_5_info;
|
||||
struct reg_param reg_params[2];
|
||||
int retval;
|
||||
|
||||
@@ -2809,7 +2809,7 @@ int arm7_9_blank_check_memory(struct target_s *target, uint32_t address, uint32_
|
||||
{
|
||||
working_area_t *erase_check_algorithm;
|
||||
struct reg_param reg_params[3];
|
||||
armv4_5_algorithm_t armv4_5_info;
|
||||
struct armv4_5_algorithm armv4_5_info;
|
||||
int retval;
|
||||
uint32_t i;
|
||||
|
||||
|
||||
@@ -546,7 +546,7 @@ static int armv4_5_run_algorithm_completion(struct target_s *target, uint32_t ex
|
||||
int armv4_5_run_algorithm_inner(struct target_s *target, 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, int (*run_it)(struct target_s *target, uint32_t exit_point, int timeout_ms, void *arch_info))
|
||||
{
|
||||
struct armv4_5_common_s *armv4_5 = target_to_armv4_5(target);
|
||||
armv4_5_algorithm_t *armv4_5_algorithm_info = arch_info;
|
||||
struct armv4_5_algorithm *armv4_5_algorithm_info = arch_info;
|
||||
enum armv4_5_state core_state = armv4_5->core_state;
|
||||
enum armv4_5_mode core_mode = armv4_5->core_mode;
|
||||
uint32_t context[17];
|
||||
|
||||
@@ -119,13 +119,13 @@ 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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user