From 582b4195a99a21caa9522713fae659621137e0f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Mon, 14 Mar 2011 15:32:14 +0100 Subject: [PATCH] dsp563xx: fix alignment warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- src/target/dsp563xx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/target/dsp563xx.c b/src/target/dsp563xx.c index cdfa79b1c..6cde152da 100644 --- a/src/target/dsp563xx.c +++ b/src/target/dsp563xx.c @@ -1393,7 +1393,7 @@ static int dsp563xx_read_memory_core(struct target *target, int mem_type, uint32 return err; if ((err = dsp563xx_once_execute_sw_ir(target->tap, 0, 0x08D13C)) != ERROR_OK) return err; - if ((err = dsp563xx_once_reg_read(target->tap, 0, DSP563XX_ONCE_OGDBR, (uint32_t*)b)) != ERROR_OK) + if ((err = dsp563xx_once_reg_read(target->tap, 0, DSP563XX_ONCE_OGDBR, (uint32_t*)(void *)b)) != ERROR_OK) return err; b += 4; } @@ -1409,7 +1409,7 @@ static int dsp563xx_read_memory_core(struct target *target, int mem_type, uint32 for (i = 0; i < x; i++) { - data = *((uint32_t*)b) & 0x00FFFFFF; + data = buf_get_u32(b, 0, 32) & 0x00FFFFFF; // LOG_DEBUG("R: %08X", *((uint32_t*)b)); target_buffer_set_u32(target, b, data); b += 4; @@ -1466,8 +1466,8 @@ static int dsp563xx_read_memory(struct target *target, int mem_type, uint32_t ad for(i=0,i1=0;i