summaryrefslogtreecommitdiff
path: root/src/target/xscale.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-31 09:37:35 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-31 09:37:35 +0000
commitb6db182c0020051e0dc642ca0b1040ea7453dcd0 (patch)
tree17a4074984d6f72033f252e2e3361fd90cc8b96e /src/target/xscale.c
parent678519311834fd7a1126f8d217c734d4f5ffbb3d (diff)
downloadopenocd+libswd-b6db182c0020051e0dc642ca0b1040ea7453dcd0.tar.gz
openocd+libswd-b6db182c0020051e0dc642ca0b1040ea7453dcd0.tar.bz2
openocd+libswd-b6db182c0020051e0dc642ca0b1040ea7453dcd0.tar.xz
openocd+libswd-b6db182c0020051e0dc642ca0b1040ea7453dcd0.zip
Add target_read_memory wrapper:
- replaces all calls to target->type->read_memory. - add documentation in target_s to warn not to invoke callback directly. git-svn-id: svn://svn.berlios.de/openocd/trunk@1959 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/xscale.c')
-rw-r--r--src/target/xscale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 3947da0b..f200e8ce 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -2187,7 +2187,7 @@ int xscale_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
if (breakpoint->length == 4)
{
/* keep the original instruction in target endianness */
- if((retval = target->type->read_memory(target, breakpoint->address, 4, 1, breakpoint->orig_instr)) != ERROR_OK)
+ if((retval = target_read_memory(target, breakpoint->address, 4, 1, breakpoint->orig_instr)) != ERROR_OK)
{
return retval;
}
@@ -2200,7 +2200,7 @@ int xscale_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint)
else
{
/* keep the original instruction in target endianness */
- if((retval = target->type->read_memory(target, breakpoint->address, 2, 1, breakpoint->orig_instr)) != ERROR_OK)
+ if((retval = target_read_memory(target, breakpoint->address, 2, 1, breakpoint->orig_instr)) != ERROR_OK)
{
return retval;
}