forked from auracaster/openocd
ARM: remove 'armv4_5_common_s' migration #define
Finish migrating from the old symbol to the new one. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
@@ -487,7 +487,7 @@ static int armv4_5_set_core_reg(struct reg *reg, uint8_t *buf)
|
||||
{
|
||||
struct arm_reg *armv4_5 = reg->arch_info;
|
||||
struct target *target = armv4_5->target;
|
||||
struct armv4_5_common_s *armv4_5_target = target_to_armv4_5(target);
|
||||
struct arm *armv4_5_target = target_to_armv4_5(target);
|
||||
uint32_t value = buf_get_u32(buf, 0, 32);
|
||||
|
||||
if (target->state != TARGET_HALTED)
|
||||
@@ -579,7 +579,7 @@ struct reg_cache* armv4_5_build_reg_cache(struct target *target, struct arm *arm
|
||||
|
||||
int armv4_5_arch_state(struct target *target)
|
||||
{
|
||||
struct armv4_5_common_s *armv4_5 = target_to_armv4_5(target);
|
||||
struct arm *armv4_5 = target_to_armv4_5(target);
|
||||
|
||||
if (armv4_5->common_magic != ARMV4_5_COMMON_MAGIC)
|
||||
{
|
||||
@@ -603,7 +603,7 @@ int armv4_5_arch_state(struct target *target)
|
||||
COMMAND_HANDLER(handle_armv4_5_reg_command)
|
||||
{
|
||||
struct target *target = get_current_target(CMD_CTX);
|
||||
struct armv4_5_common_s *armv4_5 = target_to_armv4_5(target);
|
||||
struct arm *armv4_5 = target_to_armv4_5(target);
|
||||
unsigned num_regs;
|
||||
struct reg *regs;
|
||||
|
||||
@@ -690,7 +690,7 @@ COMMAND_HANDLER(handle_armv4_5_reg_command)
|
||||
COMMAND_HANDLER(handle_armv4_5_core_state_command)
|
||||
{
|
||||
struct target *target = get_current_target(CMD_CTX);
|
||||
struct armv4_5_common_s *armv4_5 = target_to_armv4_5(target);
|
||||
struct arm *armv4_5 = target_to_armv4_5(target);
|
||||
|
||||
if (!is_arm(armv4_5))
|
||||
{
|
||||
@@ -810,7 +810,7 @@ int armv4_5_register_commands(struct command_context *cmd_ctx)
|
||||
|
||||
int armv4_5_get_gdb_reg_list(struct target *target, struct reg **reg_list[], int *reg_list_size)
|
||||
{
|
||||
struct armv4_5_common_s *armv4_5 = target_to_armv4_5(target);
|
||||
struct arm *armv4_5 = target_to_armv4_5(target);
|
||||
int i;
|
||||
|
||||
if (!is_arm_mode(armv4_5->core_mode))
|
||||
@@ -835,7 +835,7 @@ int armv4_5_get_gdb_reg_list(struct target *target, struct reg **reg_list[], int
|
||||
static int armv4_5_run_algorithm_completion(struct target *target, uint32_t exit_point, int timeout_ms, void *arch_info)
|
||||
{
|
||||
int retval;
|
||||
struct armv4_5_common_s *armv4_5 = target_to_armv4_5(target);
|
||||
struct arm *armv4_5 = target_to_armv4_5(target);
|
||||
|
||||
if ((retval = target_wait_state(target, TARGET_HALTED, timeout_ms)) != ERROR_OK)
|
||||
{
|
||||
@@ -866,7 +866,7 @@ static int armv4_5_run_algorithm_completion(struct target *target, uint32_t exit
|
||||
|
||||
int armv4_5_run_algorithm_inner(struct target *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 *target, uint32_t exit_point, int timeout_ms, void *arch_info))
|
||||
{
|
||||
struct armv4_5_common_s *armv4_5 = target_to_armv4_5(target);
|
||||
struct arm *armv4_5 = target_to_armv4_5(target);
|
||||
struct armv4_5_algorithm *armv4_5_algorithm_info = arch_info;
|
||||
enum armv4_5_state core_state = armv4_5->core_state;
|
||||
uint32_t context[17];
|
||||
@@ -1217,7 +1217,7 @@ int arm_blank_check_memory(struct target *target,
|
||||
|
||||
static int arm_full_context(struct target *target)
|
||||
{
|
||||
struct armv4_5_common_s *armv4_5 = target_to_armv4_5(target);
|
||||
struct arm *armv4_5 = target_to_armv4_5(target);
|
||||
unsigned num_regs = armv4_5->core_cache->num_regs;
|
||||
struct reg *reg = armv4_5->core_cache->reg_list;
|
||||
int retval = ERROR_OK;
|
||||
|
||||
Reference in New Issue
Block a user