Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35ff802a authored by Guo Ren's avatar Guo Ren
Browse files

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: default avatarGuo Ren <ren_guo@c-sky.com>
parent 2054f4af
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -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)