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/pld/virtex2.c | |
parent | 32ab98c9e9672d0f1d8758c7dfb478b0316c13af (diff) | |
download | riscv-openocd-f6a3fc818bc6a24b6c5bbcc6057f72d2b0b2e2ab.zip riscv-openocd-f6a3fc818bc6a24b6c5bbcc6057f72d2b0b2e2ab.tar.gz riscv-openocd-f6a3fc818bc6a24b6c5bbcc6057f72d2b0b2e2ab.tar.bz2 |
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/pld/virtex2.c')
-rw-r--r-- | src/pld/virtex2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pld/virtex2.c b/src/pld/virtex2.c index 1963736..f4657bc 100644 --- a/src/pld/virtex2.c +++ b/src/pld/virtex2.c @@ -78,7 +78,7 @@ static int virtex2_send_32(struct pld_device *pld_device, static __inline__ void virtexflip32(jtag_callback_data_t arg) { uint8_t *in = (uint8_t *)arg; - *((uint32_t *)in) = flip_u32(le_to_h_u32(in), 32); + *((uint32_t *)arg) = flip_u32(le_to_h_u32(in), 32); } static int virtex2_receive_32(struct pld_device *pld_device, |