diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-01-04 22:15:49 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-01-08 19:07:21 +0000 |
commit | e2f90565e7b3e2824fffcfcbcecf86205a1f14e2 (patch) | |
tree | 042c154924257992fb2e5c22953b2c8099bfafbb /target-arm/neon_helper.c | |
parent | f6d8a31440c523de15f88a186b9e6daacab17054 (diff) |
target-arm: A64: Fix vector register access on bigendian hosts
The A64 128 bit vector registers are stored as a pair of
uint64_t values in the register array. This means that if
we're directly loading or storing a value of size less than
64 bits we must adjust the offset appropriately to account
for whether the host is bigendian or not. Provide utility
functions to abstract away the offsetof() calculations for
the FP registers.
For do_fp_st() we can sidestep most of the issues for 64 bit
and smaller reg-to-mem transfers by always doing a 64 bit
load from the register and writing just the piece we need
to memory.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-arm/neon_helper.c')
0 files changed, 0 insertions, 0 deletions