LoongArch: Adjust {copy, clear}_user exception handler behavior
The {copy, clear}_user function should returns number of bytes that
could not be {copied, cleared}. So, try to {copy, clear} byte by byte
when ld.{d,w,h} and st.{d,w,h} trapped into an exception.
Reviewed-by:
WANG Rui <wangrui@loongson.cn>
Signed-off-by:
Weihao Li <liweihao@loongson.cn>
Signed-off-by:
Huacai Chen <chenhuacai@loongson.cn>
Loading
Please sign in to comment