zy1000: fix bug when running on non-arm CPU
authorØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 12 Nov 2009 09:10:11 +0000 (10:10 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 17 Nov 2009 14:04:17 +0000 (15:04 +0100)
commit83104648e6a1834244eb1b1bb6324f729532906c
tree28de3f4ccc64bd0475389be9233717337eb42566
parentb888b63fe9bee26e567a645f6ceb10d66bfff785
zy1000: fix bug when running on non-arm CPU

Shifting by more than 32 is undefined for 32 bit integers according
to the C standard. Robust solution is conditional code.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/jtag/zy1000/zy1000.c