summaryrefslogtreecommitdiffstats
path: root/arch/csky/abiv2
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2018-12-30 18:19:29 +0100
committerGuo Ren <ren_guo@c-sky.com>2018-12-31 15:56:59 +0100
commit35ff802af1c49dab21af8ef47b492ff952831d72 (patch)
treece6813c19a11e1b40530ef138fd11cd235e4304e /arch/csky/abiv2
parentcsky: bugfix gdb coredump error. (diff)
downloadlinux-35ff802af1c49dab21af8ef47b492ff952831d72.tar.xz
linux-35ff802af1c49dab21af8ef47b492ff952831d72.zip
csky: fixup remove vdsp implement for kernel.
The vr regs for vdsp only saved in task_switch not in every exception trap-in. The memcpy with vdsp instructions will destroy the vr regs for user space applications. Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Diffstat (limited to 'arch/csky/abiv2')
-rw-r--r--arch/csky/abiv2/memcpy.S8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/csky/abiv2/memcpy.S b/arch/csky/abiv2/memcpy.S
index 987fec60ab97..145bf3a9360e 100644
--- a/arch/csky/abiv2/memcpy.S
+++ b/arch/csky/abiv2/memcpy.S
@@ -27,13 +27,7 @@ ENTRY(memcpy)
LABLE_ALIGN
.L_len_larger_16bytes:
-#if defined(__CSKY_VDSPV2__)
- vldx.8 vr0, (r1), r19
- PRE_BNEZAD (r18)
- addi r1, 16
- vstx.8 vr0, (r0), r19
- addi r0, 16
-#elif defined(__CK860__)
+#if defined(__CK860__)
ldw r3, (r1, 0)
stw r3, (r0, 0)
ldw r3, (r1, 4)