diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-09-03 22:49:37 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-09-20 13:12:35 +0200 |
commit | f6a3fc818bc6a24b6c5bbcc6057f72d2b0b2e2ab (patch) | |
tree | 2b9430c70669a47b3503e00612b68238a70a3ea9 /src/target/arm11.c | |
parent | 32ab98c9e9672d0f1d8758c7dfb478b0316c13af (diff) |
warnings: fix alignment warnings
These warnings are for architectures that do not
support non-aligned word access.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target/arm11.c')
-rw-r--r-- | src/target/arm11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c index 85d45b00..9955143a 100644 --- a/src/target/arm11.c +++ b/src/target/arm11.c @@ -901,7 +901,7 @@ static int arm11_read_memory_inner(struct target *target, { uint32_t instr = !arm11_config_memrw_no_increment ? 0xecb05e01 : 0xed905e00; /** \todo TODO: buffer cast to uint32_t* causes alignment warnings */ - uint32_t *words = (uint32_t *)buffer; + uint32_t *words = (uint32_t *)(void *)buffer; /* LDC p14,c5,[R0],#4 */ /* LDC p14,c5,[R0] */ @@ -1023,7 +1023,7 @@ static int arm11_write_memory_inner(struct target *target, uint32_t instr = !no_increment ? 0xeca05e01 : 0xed805e00; /** \todo TODO: buffer cast to uint32_t* causes alignment warnings */ - uint32_t *words = (uint32_t*)buffer; + uint32_t *words = (uint32_t*)(void *)buffer; /* "burst" here just means trusting each instruction executes * fully before we run the next one: per-word roundtrips, to |