summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2011-03-15 10:43:45 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-03-15 16:29:52 +0100
commit9b1d38707c1d407a72c5b6d8bfd30240a9d7dd34 (patch)
tree703b77afd30ca488ee71e305d5a5095a16d77e17 /src/target
parent9eeb02c16510629f2431cf78c0fec00667db4fe6 (diff)
downloadopenocd_libswd-9b1d38707c1d407a72c5b6d8bfd30240a9d7dd34.tar.gz
openocd_libswd-9b1d38707c1d407a72c5b6d8bfd30240a9d7dd34.tar.bz2
openocd_libswd-9b1d38707c1d407a72c5b6d8bfd30240a9d7dd34.tar.xz
openocd_libswd-9b1d38707c1d407a72c5b6d8bfd30240a9d7dd34.zip
dsp563xx: fix bug in x buffer handling
found by inspection. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target')
-rw-r--r--src/target/dsp563xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/dsp563xx.c b/src/target/dsp563xx.c
index cb2025e4..cdfa79b1 100644
--- a/src/target/dsp563xx.c
+++ b/src/target/dsp563xx.c
@@ -1467,7 +1467,7 @@ static int dsp563xx_read_memory(struct target *target, int mem_type, uint32_t ad
for(i=0,i1=0;i<count;i+=2,i1++)
{
((uint32_t*)buffer)[i] = ((uint32_t*)buffer_y)[i1];
- ((uint32_t*)buffer)[i] = ((uint32_t*)buffer_x)[i1];
+ ((uint32_t*)buffer)[i+1] = ((uint32_t*)buffer_x)[i1];
}
free(buffer_y);