armv7a: make local functions static
Also fix a spelling error and remove the declaration for a non-existent function from the header. Change-Id: I13177e2d81aa167c05c1cc766f06924211e6d735 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/118 Tested-by: jenkins Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>__archive__
parent
8c6b95ed16
commit
f80ec2aa37
|
@ -87,7 +87,7 @@ done:
|
||||||
/* (void) */ dpm->finish(dpm);
|
/* (void) */ dpm->finish(dpm);
|
||||||
}
|
}
|
||||||
|
|
||||||
int armv7a_read_ttbcr(struct target *target)
|
static int armv7a_read_ttbcr(struct target *target)
|
||||||
{
|
{
|
||||||
struct armv7a_common *armv7a = target_to_armv7a(target);
|
struct armv7a_common *armv7a = target_to_armv7a(target);
|
||||||
struct arm_dpm *dpm = armv7a->armv4_5_common.dpm;
|
struct arm_dpm *dpm = armv7a->armv4_5_common.dpm;
|
||||||
|
@ -454,7 +454,7 @@ static int armv7a_handle_l2x_cache_info_command(struct command_context *cmd_ctx,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int armv7a_l2x_cache_init(struct target *target, uint32_t base, uint32_t way)
|
static int armv7a_l2x_cache_init(struct target *target, uint32_t base, uint32_t way)
|
||||||
{
|
{
|
||||||
struct armv7a_l2x_cache *l2x_cache;
|
struct armv7a_l2x_cache *l2x_cache;
|
||||||
struct target_list *head = target->head;
|
struct target_list *head = target->head;
|
||||||
|
@ -542,7 +542,7 @@ int armv7a_handle_cache_info_command(struct command_context *cmd_ctx,
|
||||||
|
|
||||||
|
|
||||||
/* retrieve core id cluster id */
|
/* retrieve core id cluster id */
|
||||||
int arnv7a_read_mpidr(struct target *target)
|
static int armv7a_read_mpidr(struct target *target)
|
||||||
{
|
{
|
||||||
int retval = ERROR_FAIL;
|
int retval = ERROR_FAIL;
|
||||||
struct armv7a_common *armv7a = target_to_armv7a(target);
|
struct armv7a_common *armv7a = target_to_armv7a(target);
|
||||||
|
@ -711,7 +711,7 @@ int armv7a_identify_cache(struct target *target)
|
||||||
|
|
||||||
done:
|
done:
|
||||||
dpm->finish(dpm);
|
dpm->finish(dpm);
|
||||||
arnv7a_read_mpidr(target);
|
armv7a_read_mpidr(target);
|
||||||
return retval;
|
return retval;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,8 +167,6 @@ target_to_armv7a(struct target *target)
|
||||||
|
|
||||||
int armv7a_arch_state(struct target *target);
|
int armv7a_arch_state(struct target *target);
|
||||||
int armv7a_identify_cache(struct target *target);
|
int armv7a_identify_cache(struct target *target);
|
||||||
struct reg_cache *armv7a_build_reg_cache(struct target *target,
|
|
||||||
struct armv7a_common *armv7a_common);
|
|
||||||
int armv7a_init_arch_info(struct target *target, struct armv7a_common *armv7a);
|
int armv7a_init_arch_info(struct target *target, struct armv7a_common *armv7a);
|
||||||
int armv7a_mmu_translate_va_pa(struct target *target, uint32_t va,
|
int armv7a_mmu_translate_va_pa(struct target *target, uint32_t va,
|
||||||
uint32_t *val,int meminfo);
|
uint32_t *val,int meminfo);
|
||||||
|
|
Loading…
Reference in New Issue