OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f2d9d7
)
target/arm: Copy the entire vector in DO_ZIP
author
Richard Henderson
<richard.henderson@linaro.org>
Thu, 3 Nov 2022 13:10:41 +0000
(13:10 +0000)
committer
Peter Maydell
<peter.maydell@linaro.org>
Fri, 4 Nov 2022 10:58:58 +0000
(10:58 +0000)
With odd_ofs set, we weren't copying enough data.
Fixes:
09eb6d7025d1
("target/arm: Move sve zip high_ofs into simd_data")
Reported-by: Idan Horowitz <idan.horowitz@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id:
20221031054144
.3574-1-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/sve_helper.c
patch
|
blob
|
history
diff --git
a/target/arm/sve_helper.c
b/target/arm/sve_helper.c
index
3d0d298
..
1afeadf
100644
(file)
--- a/
target/arm/sve_helper.c
+++ b/
target/arm/sve_helper.c
@@
-3366,10
+3366,10
@@
void HELPER(NAME)(void *vd, void *vn, void *vm, uint32_t desc) \
/* We produce output faster than we consume input. \
Therefore we must be mindful of possible overlap. */ \
if (unlikely((vn - vd) < (uintptr_t)oprsz)) { \
- vn = memcpy(&tmp_n, vn, oprsz
_2);
\
+ vn = memcpy(&tmp_n, vn, oprsz
);
\
} \
if (unlikely((vm - vd) < (uintptr_t)oprsz)) { \
- vm = memcpy(&tmp_m, vm, oprsz
_2);
\
+ vm = memcpy(&tmp_m, vm, oprsz
);
\
} \
for (i = 0; i < oprsz_2; i += sizeof(TYPE)) { \
*(TYPE *)(vd + H(2 * i + 0)) = *(TYPE *)(vn + odd_ofs + H(i)); \