Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <jiulong@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>

authored by

Liu Yibin and committed by
Guo Ren
165f2d28 c2e59d1f

+4 -4
+2 -2
arch/csky/abiv1/inc/abi/entry.h
··· 167 167 * BA Reserved C D V 168 168 */ 169 169 cprcr r6, cpcr30 170 - lsri r6, 28 171 - lsli r6, 28 170 + lsri r6, 29 171 + lsli r6, 29 172 172 addi r6, 0xe 173 173 cpwcr r6, cpcr30 174 174
+2 -2
arch/csky/abiv2/inc/abi/entry.h
··· 285 285 */ 286 286 mfcr r6, cr<30, 15> /* Get MSA0 */ 287 287 2: 288 - lsri r6, 28 289 - lsli r6, 28 288 + lsri r6, 29 289 + lsli r6, 29 290 290 addi r6, 0x1ce 291 291 mtcr r6, cr<30, 15> /* Set MSA0 */ 292 292