aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorGareth McMullin2015-03-28 20:15:33 -0700
committerGareth McMullin2015-03-28 20:15:33 -0700
commit1e54139f4a45d379c1cda7ad02a3f4a7d321b78e (patch)
treeb5671e507039ee525679228231d749ffc12b96ac /src/include
parent4313b64bbe27024ab4238bbd18e4b6624a1c8bca (diff)
target: Remove pc_read/pc_write methods.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cortexm.h1
-rw-r--r--src/include/target.h9
2 files changed, 1 insertions, 9 deletions
diff --git a/src/include/cortexm.h b/src/include/cortexm.h
index 8f4d45d..9c906a1 100644
--- a/src/include/cortexm.h
+++ b/src/include/cortexm.h
@@ -149,6 +149,7 @@ void cortexm_halt_resume(struct target_s *target, bool step);
int cortexm_run_stub(struct target_s *target, uint32_t loadaddr,
const uint16_t *stub, uint32_t stublen,
uint32_t r0, uint32_t r1, uint32_t r2, uint32_t r3);
+int cortexm_pc_write(target *t, const uint32_t val);
#endif
diff --git a/src/include/target.h b/src/include/target.h
index 92703b7..48e81f2 100644
--- a/src/include/target.h
+++ b/src/include/target.h
@@ -61,12 +61,6 @@ target *target_attach(target *t, target_destroy_callback destroy_cb);
#define target_regs_write(target, data) \
(target)->regs_write((target), (data))
-#define target_pc_read(target) \
- (target)->pc_read((target))
-
-#define target_pc_write(target, val) \
- (target)->pc_write((target), (val))
-
/* Halt/resume functions */
#define target_reset(target) \
@@ -135,9 +129,6 @@ struct target_s {
int (*regs_read)(target *t, void *data);
int (*regs_write)(target *t, const void *data);
- uint32_t (*pc_read)(target *t);
- int (*pc_write)(target *t, const uint32_t val);
-
/* Halt/resume functions */
void (*reset)(target *t);
void (*halt_request)(target *t);