aboutsummaryrefslogtreecommitdiff
path: root/src/target/armv4_5.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-23 08:17:01 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-24 21:37:36 -0800
commit66ee303456910f684244a20a0ac2e958d40b78cb (patch)
tree3a5f06b0ee9e3978ebc9d836aac622b752e251ad /src/target/armv4_5.h
parent144e3678bd2d518388b6c2d7f3d2a912a9ac2abd (diff)
downloadriscv-openocd-66ee303456910f684244a20a0ac2e958d40b78cb.zip
riscv-openocd-66ee303456910f684244a20a0ac2e958d40b78cb.tar.gz
riscv-openocd-66ee303456910f684244a20a0ac2e958d40b78cb.tar.bz2
remove target_type register_command callback
Uses chaining of command_registration structures to eliminate all target_type register_callback routines. Exports the command_handler registration arrays for those target types that are used by others.
Diffstat (limited to 'src/target/armv4_5.h')
-rw-r--r--src/target/armv4_5.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/target/armv4_5.h b/src/target/armv4_5.h
index 7a6cb61..822d143 100644
--- a/src/target/armv4_5.h
+++ b/src/target/armv4_5.h
@@ -27,6 +27,8 @@
#define ARMV4_5_H
#include "target.h"
+#include "command.h"
+
typedef enum armv4_5_mode
{
@@ -155,7 +157,8 @@ int armv4_5_arch_state(struct target *target);
int armv4_5_get_gdb_reg_list(struct target *target,
struct reg **reg_list[], int *reg_list_size);
-int armv4_5_register_commands(struct command_context *cmd_ctx);
+extern const struct command_registration arm_command_handlers[];
+
int armv4_5_init_arch_info(struct target *target, struct arm *armv4_5);
int armv4_5_run_algorithm(struct target *target,