diff options
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 |
commit | 9b1d38707c1d407a72c5b6d8bfd30240a9d7dd34 (patch) | |
tree | 703b77afd30ca488ee71e305d5a5095a16d77e17 | |
parent | 9eeb02c16510629f2431cf78c0fec00667db4fe6 (diff) | |
download | openocd_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>
-rw-r--r-- | src/target/dsp563xx.c | 2 |
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); |