From 9b1d38707c1d407a72c5b6d8bfd30240a9d7dd34 Mon Sep 17 00:00:00 2001
From: Øyvind Harboe <oyvind.harboe@zylin.com>
Date: Tue, 15 Mar 2011 10:43:45 +0100
Subject: dsp563xx: fix bug in x buffer handling
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

found by inspection.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
---
 src/target/dsp563xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
cgit v1.2.3