target: don't export local symbols
Symbols that are not used outside the file should not be exported and should be declared as static. Change-Id: Icbe7f7bce287b903edec9dc9db3370722c51fbd5 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7173 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
parent
efa2068f1a
commit
5d6be673c3
|
@ -310,7 +310,4 @@ void arm_set_cpsr(struct arm *arm, uint32_t cpsr);
|
||||||
struct reg *arm_reg_current(struct arm *arm, unsigned regnum);
|
struct reg *arm_reg_current(struct arm *arm, unsigned regnum);
|
||||||
struct reg *armv8_reg_current(struct arm *arm, unsigned regnum);
|
struct reg *armv8_reg_current(struct arm *arm, unsigned regnum);
|
||||||
|
|
||||||
extern struct reg arm_gdb_dummy_fp_reg;
|
|
||||||
extern struct reg arm_gdb_dummy_fps_reg;
|
|
||||||
|
|
||||||
#endif /* OPENOCD_TARGET_ARM_H */
|
#endif /* OPENOCD_TARGET_ARM_H */
|
||||||
|
|
|
@ -44,7 +44,7 @@ static int arm946e_post_debug_entry(struct target *target);
|
||||||
static void arm946e_pre_restore_context(struct target *target);
|
static void arm946e_pre_restore_context(struct target *target);
|
||||||
static int arm946e_read_cp15(struct target *target, int reg_addr, uint32_t *value);
|
static int arm946e_read_cp15(struct target *target, int reg_addr, uint32_t *value);
|
||||||
|
|
||||||
int arm946e_init_arch_info(struct target *target,
|
static int arm946e_init_arch_info(struct target *target,
|
||||||
struct arm946e_common *arm946e,
|
struct arm946e_common *arm946e,
|
||||||
struct jtag_tap *tap)
|
struct jtag_tap *tap)
|
||||||
{
|
{
|
||||||
|
@ -173,7 +173,7 @@ static int arm946e_read_cp15(struct target *target, int reg_addr, uint32_t *valu
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int arm946e_write_cp15(struct target *target, int reg_addr, uint32_t value)
|
static int arm946e_write_cp15(struct target *target, int reg_addr, uint32_t value)
|
||||||
{
|
{
|
||||||
int retval = ERROR_OK;
|
int retval = ERROR_OK;
|
||||||
struct arm7_9_common *arm7_9 = target_to_arm7_9(target);
|
struct arm7_9_common *arm7_9 = target_to_arm7_9(target);
|
||||||
|
@ -720,7 +720,7 @@ static const struct command_registration arm946e_exec_command_handlers[] = {
|
||||||
COMMAND_REGISTRATION_DONE
|
COMMAND_REGISTRATION_DONE
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct command_registration arm946e_command_handlers[] = {
|
static const struct command_registration arm946e_command_handlers[] = {
|
||||||
{
|
{
|
||||||
.chain = arm9tdmi_command_handlers,
|
.chain = arm9tdmi_command_handlers,
|
||||||
},
|
},
|
||||||
|
|
|
@ -32,10 +32,4 @@ static inline struct arm946e_common *target_to_arm946(struct target *target)
|
||||||
arm7_9_common.arm);
|
arm7_9_common.arm);
|
||||||
}
|
}
|
||||||
|
|
||||||
int arm946e_init_arch_info(struct target *target,
|
|
||||||
struct arm946e_common *arm946e, struct jtag_tap *tap);
|
|
||||||
int arm946e_write_cp15(struct target *target, int reg_addr, uint32_t value);
|
|
||||||
|
|
||||||
extern const struct command_registration arm946e_command_handlers[];
|
|
||||||
|
|
||||||
#endif /* OPENOCD_TARGET_ARM946E_H */
|
#endif /* OPENOCD_TARGET_ARM946E_H */
|
||||||
|
|
|
@ -535,7 +535,7 @@ static struct reg_feature arm_gdb_dummy_fp_features = {
|
||||||
* Modern ARM cores use Vector Floating Point (VFP), if they
|
* Modern ARM cores use Vector Floating Point (VFP), if they
|
||||||
* have any floating point support. VFP is not FPA-compatible.
|
* have any floating point support. VFP is not FPA-compatible.
|
||||||
*/
|
*/
|
||||||
struct reg arm_gdb_dummy_fp_reg = {
|
static struct reg arm_gdb_dummy_fp_reg = {
|
||||||
.name = "GDB dummy FPA register",
|
.name = "GDB dummy FPA register",
|
||||||
.value = (uint8_t *) arm_gdb_dummy_fp_value,
|
.value = (uint8_t *) arm_gdb_dummy_fp_value,
|
||||||
.valid = true,
|
.valid = true,
|
||||||
|
@ -552,7 +552,7 @@ static const uint8_t arm_gdb_dummy_fps_value[4];
|
||||||
* Dummy FPA status registers are required to support GDB on ARM.
|
* Dummy FPA status registers are required to support GDB on ARM.
|
||||||
* Register packets require an obsolete FPA status register.
|
* Register packets require an obsolete FPA status register.
|
||||||
*/
|
*/
|
||||||
struct reg arm_gdb_dummy_fps_reg = {
|
static struct reg arm_gdb_dummy_fps_reg = {
|
||||||
.name = "GDB dummy FPA status register",
|
.name = "GDB dummy FPA status register",
|
||||||
.value = (uint8_t *) arm_gdb_dummy_fps_value,
|
.value = (uint8_t *) arm_gdb_dummy_fps_value,
|
||||||
.valid = true,
|
.valid = true,
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#include "target_type.h"
|
#include "target_type.h"
|
||||||
#include "dsp5680xx.h"
|
#include "dsp5680xx.h"
|
||||||
|
|
||||||
struct dsp5680xx_common dsp5680xx_context;
|
static struct dsp5680xx_common dsp5680xx_context;
|
||||||
|
|
||||||
#define _E "DSP5680XX_ERROR:%d\nAt:%s:%d:%s"
|
#define _E "DSP5680XX_ERROR:%d\nAt:%s:%d:%s"
|
||||||
#define err_check(r, c, m) if (r != ERROR_OK) {LOG_ERROR(_E, c, __func__, __LINE__, m); return r; }
|
#define err_check(r, c, m) if (r != ERROR_OK) {LOG_ERROR(_E, c, __func__, __LINE__, m); return r; }
|
||||||
|
|
|
@ -278,8 +278,6 @@ struct dsp5680xx_common {
|
||||||
bool debug_mode_enabled;
|
bool debug_mode_enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct dsp5680xx_common dsp5680xx_context;
|
|
||||||
|
|
||||||
static inline struct dsp5680xx_common *target_to_dsp5680xx(struct target
|
static inline struct dsp5680xx_common *target_to_dsp5680xx(struct target
|
||||||
*target)
|
*target)
|
||||||
{
|
{
|
||||||
|
|
|
@ -150,7 +150,7 @@ static int mips32_pracc_clean_text_jump(struct mips_ejtag *ejtag_info)
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mips32_pracc_exec(struct mips_ejtag *ejtag_info, struct pracc_queue_info *ctx,
|
static int mips32_pracc_exec(struct mips_ejtag *ejtag_info, struct pracc_queue_info *ctx,
|
||||||
uint32_t *param_out, bool check_last)
|
uint32_t *param_out, bool check_last)
|
||||||
{
|
{
|
||||||
int code_count = 0;
|
int code_count = 0;
|
||||||
|
@ -323,7 +323,7 @@ void pracc_add(struct pracc_queue_info *ctx, uint32_t addr, uint32_t instr)
|
||||||
ctx->store_count++;
|
ctx->store_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void pracc_add_li32(struct pracc_queue_info *ctx, uint32_t reg_num, uint32_t data, bool optimize)
|
static void pracc_add_li32(struct pracc_queue_info *ctx, uint32_t reg_num, uint32_t data, bool optimize)
|
||||||
{
|
{
|
||||||
if (LOWER16(data) == 0 && optimize)
|
if (LOWER16(data) == 0 && optimize)
|
||||||
pracc_add(ctx, 0, MIPS32_LUI(ctx->isa, reg_num, UPPER16(data))); /* load only upper value */
|
pracc_add(ctx, 0, MIPS32_LUI(ctx->isa, reg_num, UPPER16(data))); /* load only upper value */
|
||||||
|
|
|
@ -53,7 +53,6 @@ struct pracc_queue_info {
|
||||||
|
|
||||||
void pracc_queue_init(struct pracc_queue_info *ctx);
|
void pracc_queue_init(struct pracc_queue_info *ctx);
|
||||||
void pracc_add(struct pracc_queue_info *ctx, uint32_t addr, uint32_t instr);
|
void pracc_add(struct pracc_queue_info *ctx, uint32_t addr, uint32_t instr);
|
||||||
void pracc_add_li32(struct pracc_queue_info *ctx, uint32_t reg_num, uint32_t data, bool optimize);
|
|
||||||
void pracc_queue_free(struct pracc_queue_info *ctx);
|
void pracc_queue_free(struct pracc_queue_info *ctx);
|
||||||
int mips32_pracc_queue_exec(struct mips_ejtag *ejtag_info,
|
int mips32_pracc_queue_exec(struct mips_ejtag *ejtag_info,
|
||||||
struct pracc_queue_info *ctx, uint32_t *buf, bool check_last);
|
struct pracc_queue_info *ctx, uint32_t *buf, bool check_last);
|
||||||
|
@ -68,9 +67,6 @@ int mips32_pracc_fastdata_xfer(struct mips_ejtag *ejtag_info, struct working_are
|
||||||
int mips32_pracc_read_regs(struct mips_ejtag *ejtag_info, uint32_t *regs);
|
int mips32_pracc_read_regs(struct mips_ejtag *ejtag_info, uint32_t *regs);
|
||||||
int mips32_pracc_write_regs(struct mips_ejtag *ejtag_info, uint32_t *regs);
|
int mips32_pracc_write_regs(struct mips_ejtag *ejtag_info, uint32_t *regs);
|
||||||
|
|
||||||
int mips32_pracc_exec(struct mips_ejtag *ejtag_info, struct pracc_queue_info *ctx,
|
|
||||||
uint32_t *param_out, bool check_last);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \b mips32_cp0_read
|
* \b mips32_cp0_read
|
||||||
*
|
*
|
||||||
|
|
|
@ -1357,7 +1357,7 @@ static const struct command_registration mips_m4k_exec_command_handlers[] = {
|
||||||
COMMAND_REGISTRATION_DONE
|
COMMAND_REGISTRATION_DONE
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct command_registration mips_m4k_command_handlers[] = {
|
static const struct command_registration mips_m4k_command_handlers[] = {
|
||||||
{
|
{
|
||||||
.chain = mips32_command_handlers,
|
.chain = mips32_command_handlers,
|
||||||
},
|
},
|
||||||
|
|
|
@ -43,6 +43,5 @@ static inline void mips_m4k_isa_filter(enum mips32_isa_imp isa_imp, target_addr_
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
extern const struct command_registration mips_m4k_command_handlers[];
|
|
||||||
|
|
||||||
#endif /* OPENOCD_TARGET_MIPS_M4K_H */
|
#endif /* OPENOCD_TARGET_MIPS_M4K_H */
|
||||||
|
|
Loading…
Reference in New Issue