summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-29 01:43:01 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-29 01:43:01 +0000
commit1de959ca1c9e67ef57f77ec2d7a1132b73153abb (patch)
tree6e2feea9aa7b86028a10feffd199011446687af7 /src/target
parent55c39bae67cb3b26dacb78a9d45fcd900745c3d8 (diff)
downloadopenocd_libswd-1de959ca1c9e67ef57f77ec2d7a1132b73153abb.tar.gz
openocd_libswd-1de959ca1c9e67ef57f77ec2d7a1132b73153abb.tar.bz2
openocd_libswd-1de959ca1c9e67ef57f77ec2d7a1132b73153abb.tar.xz
openocd_libswd-1de959ca1c9e67ef57f77ec2d7a1132b73153abb.zip
Remove redundant declarations to allow building with -Wredundant-decls.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1560 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arm7_9_common.h1
-rw-r--r--src/target/arm7tdmi.c4
-rw-r--r--src/target/arm926ejs.c6
-rw-r--r--src/target/arm9tdmi.c2
-rw-r--r--src/target/armv4_5.h1
-rw-r--r--src/target/armv4_5_mmu.c2
-rw-r--r--src/target/armv7m.h1
-rw-r--r--src/target/embeddedice.c5
-rw-r--r--src/target/etb.c5
-rw-r--r--src/target/etm.c6
10 files changed, 1 insertions, 32 deletions
diff --git a/src/target/arm7_9_common.h b/src/target/arm7_9_common.h
index de2aef86..9b497edc 100644
--- a/src/target/arm7_9_common.h
+++ b/src/target/arm7_9_common.h
@@ -127,7 +127,6 @@ int arm7_9_soft_reset_halt(struct target_s *target);
int arm7_9_prepare_reset_halt(struct target_s *target);
int arm7_9_halt(target_t *target);
-int arm7_9_debug_entry(target_t *target);
int arm7_9_full_context(target_t *target);
int arm7_9_restore_context(target_t *target);
int arm7_9_resume(struct target_s *target, int current, u32 address, int handle_breakpoints, int debug_execution);
diff --git a/src/target/arm7tdmi.c b/src/target/arm7tdmi.c
index 0c408a7a..1a448fc3 100644
--- a/src/target/arm7tdmi.c
+++ b/src/target/arm7tdmi.c
@@ -43,13 +43,9 @@
#define _DEBUG_INSTRUCTION_EXECUTION_
#endif
-/* cli handling */
-int arm7tdmi_register_commands(struct command_context_s *cmd_ctx);
-
/* forward declarations */
int arm7tdmi_target_create(struct target_s *target,Jim_Interp *interp);
-int arm7tdmi_init_target(struct command_context_s *cmd_ctx, struct target_s *target);
int arm7tdmi_quit(void);
/* target function declarations */
diff --git a/src/target/arm926ejs.c b/src/target/arm926ejs.c
index ba156d48..a6ef5e10 100644
--- a/src/target/arm926ejs.c
+++ b/src/target/arm926ejs.c
@@ -34,8 +34,6 @@
#endif
/* cli handling */
-int arm926ejs_register_commands(struct command_context_s *cmd_ctx);
-
int arm926ejs_handle_cp15_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
int arm926ejs_handle_cp15i_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
int arm926ejs_handle_virt2phys_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
@@ -50,10 +48,8 @@ int arm926ejs_handle_read_mmu_command(struct command_context_s *cmd_ctx, char *c
int arm926ejs_target_create(struct target_s *target, Jim_Interp *interp);
int arm926ejs_init_target(struct command_context_s *cmd_ctx, struct target_s *target);
int arm926ejs_quit(void);
-int arm926ejs_arch_state(struct target_s *target);
int arm926ejs_read_memory(struct target_s *target, u32 address, u32 size, u32 count, u8 *buffer);
-int arm926ejs_write_memory(struct target_s *target, u32 address, u32 size, u32 count, u8 *buffer);
-int arm926ejs_soft_reset_halt(struct target_s *target);
+
static int arm926ejs_virt2phys(struct target_s *target, u32 virtual, u32 *physical);
static int arm926ejs_mmu(struct target_s *target, int *enabled);
diff --git a/src/target/arm9tdmi.c b/src/target/arm9tdmi.c
index 15ce8dcb..1aab2864 100644
--- a/src/target/arm9tdmi.c
+++ b/src/target/arm9tdmi.c
@@ -48,13 +48,11 @@
#endif
/* cli handling */
-int arm9tdmi_register_commands(struct command_context_s *cmd_ctx);
int handle_arm9tdmi_catch_vectors_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
/* forward declarations */
int arm9tdmi_target_create( struct target_s *target, Jim_Interp *interp );
-int arm9tdmi_init_target(struct command_context_s *cmd_ctx, struct target_s *target);
int arm9tdmi_quit(void);
target_type_t arm9tdmi_target =
diff --git a/src/target/armv4_5.h b/src/target/armv4_5.h
index b007b51a..59f4af99 100644
--- a/src/target/armv4_5.h
+++ b/src/target/armv4_5.h
@@ -139,7 +139,6 @@ static __inline enum armv4_5_mode armv4_5_number_to_mode(int number)
extern int armv4_5_arch_state(struct target_s *target);
extern int armv4_5_get_gdb_reg_list(target_t *target, reg_t **reg_list[], int *reg_list_size);
-extern int armv4_5_invalidate_core_regs(target_t *target);
extern int armv4_5_register_commands(struct command_context_s *cmd_ctx);
extern int armv4_5_init_arch_info(target_t *target, armv4_5_common_t *armv4_5);
diff --git a/src/target/armv4_5_mmu.c b/src/target/armv4_5_mmu.c
index 1d84847e..869aabef 100644
--- a/src/target/armv4_5_mmu.c
+++ b/src/target/armv4_5_mmu.c
@@ -30,8 +30,6 @@
#include <stdlib.h>
u32 armv4mmu_translate_va(target_t *target, armv4_5_mmu_common_t *armv4_5_mmu, u32 va, int *type, u32 *cb, int *domain, u32 *ap);
-int armv4_5_mmu_read_physical(target_t *target, armv4_5_mmu_common_t *armv4_5_mmu, u32 address, u32 size, u32 count, u8 *buffer);
-int armv4_5_mmu_write_physical(target_t *target, armv4_5_mmu_common_t *armv4_5_mmu, u32 address, u32 size, u32 count, u8 *buffer);
char* armv4_5_mmu_page_type_names[] =
{
diff --git a/src/target/armv7m.h b/src/target/armv7m.h
index 909330bd..35afe11f 100644
--- a/src/target/armv7m.h
+++ b/src/target/armv7m.h
@@ -121,7 +121,6 @@ extern int armv7m_mode_to_number(enum armv7m_mode mode);
extern int armv7m_arch_state(struct target_s *target);
extern int armv7m_get_gdb_reg_list(target_t *target, reg_t **reg_list[], int *reg_list_size);
-extern int armv7m_invalidate_core_regs(target_t *target);
extern int armv7m_register_commands(struct command_context_s *cmd_ctx);
extern int armv7m_init_arch_info(target_t *target, armv7m_common_t *armv7m);
diff --git a/src/target/embeddedice.c b/src/target/embeddedice.c
index 6a1cf054..15beb9f4 100644
--- a/src/target/embeddedice.c
+++ b/src/target/embeddedice.c
@@ -86,11 +86,6 @@ char* embeddedice_reg_list[] =
int embeddedice_reg_arch_type = -1;
int embeddedice_get_reg(reg_t *reg);
-void embeddedice_set_reg(reg_t *reg, u32 value);
-int embeddedice_set_reg_w_exec(reg_t *reg, u8 *buf);
-
-void embeddedice_write_reg(reg_t *reg, u32 value);
-int embeddedice_read_reg(reg_t *reg);
reg_cache_t* embeddedice_build_reg_cache(target_t *target, arm7_9_common_t *arm7_9)
{
diff --git a/src/target/etb.c b/src/target/etb.c
index 709bb008..9f5e78a1 100644
--- a/src/target/etb.c
+++ b/src/target/etb.c
@@ -52,11 +52,6 @@ char* etb_reg_list[] =
int etb_reg_arch_type = -1;
int etb_get_reg(reg_t *reg);
-int etb_set_reg(reg_t *reg, u32 value);
-int etb_set_reg_w_exec(reg_t *reg, u8 *buf);
-
-int etb_write_reg(reg_t *reg, u32 value);
-int etb_read_reg(reg_t *reg);
int handle_etb_config_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
diff --git a/src/target/etm.c b/src/target/etm.c
index 06b97fe3..f9590709 100644
--- a/src/target/etm.c
+++ b/src/target/etm.c
@@ -208,11 +208,6 @@ char* etm_reg_list[] =
int etm_reg_arch_type = -1;
int etm_get_reg(reg_t *reg);
-int etm_set_reg(reg_t *reg, u32 value);
-int etm_set_reg_w_exec(reg_t *reg, u8 *buf);
-
-int etm_write_reg(reg_t *reg, u32 value);
-int etm_read_reg(reg_t *reg);
command_t *etm_cmd = NULL;
@@ -480,7 +475,6 @@ int etm_store_reg(reg_t *reg)
/* ETM trace analysis functionality
*
*/
-extern etm_capture_driver_t etb_capture_driver;
extern etm_capture_driver_t etm_dummy_capture_driver;
#if BUILD_OOCD_TRACE == 1
extern etm_capture_driver_t oocd_trace_capture_driver;