Skip to content

Commit 165f2d2

Browse files
Liu Yibinguoren83
authored andcommitted
csky: Fixup msa highest 3 bits mask
Just as comment mentioned, the msa format: cr<30/31, 15> MSA register format: 31 - 29 | 28 - 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 BA Reserved SH WA B SO SEC C D V So we should shift 29 bits not 28 bits for mask Signed-off-by: Liu Yibin <[email protected]> Signed-off-by: Guo Ren <[email protected]>
1 parent c2e59d1 commit 165f2d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/csky/abiv1/inc/abi/entry.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@
167167
* BA Reserved C D V
168168
*/
169169
cprcr r6, cpcr30
170-
lsri r6, 28
171-
lsli r6, 28
170+
lsri r6, 29
171+
lsli r6, 29
172172
addi r6, 0xe
173173
cpwcr r6, cpcr30
174174

arch/csky/abiv2/inc/abi/entry.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@
285285
*/
286286
mfcr r6, cr<30, 15> /* Get MSA0 */
287287
2:
288-
lsri r6, 28
289-
lsli r6, 28
288+
lsri r6, 29
289+
lsli r6, 29
290290
addi r6, 0x1ce
291291
mtcr r6, cr<30, 15> /* Set MSA0 */
292292

0 commit comments

Comments
 (0)