LoongArch: Add unaligned access support
authorHuacai Chen <chenhuacai@loongson.cn>
Sat, 10 Dec 2022 14:39:59 +0000 (22:39 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 14 Dec 2022 00:36:11 +0000 (08:36 +0800)
commit61a6fccc0bd2e8030b2672a52ef3f6706b2b2ee4
tree7f10ae1216e9e65ec4a5770a168adbe0e725f479
parentdbcd7f5fafea64dbe588c4ec18bc309fde5d1e1c
LoongArch: Add unaligned access support

Loongson-2 series (Loongson-2K500, Loongson-2K1000) don't support
unaligned access in hardware, while Loongson-3 series (Loongson-3A5000,
Loongson-3C5000) are configurable whether support unaligned access in
hardware. This patch add unaligned access emulation for those LoongArch
processors without hardware support.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Documentation/admin-guide/sysctl/kernel.rst
arch/loongarch/Kconfig
arch/loongarch/include/asm/inst.h
arch/loongarch/include/asm/thread_info.h
arch/loongarch/kernel/Makefile
arch/loongarch/kernel/traps.c
arch/loongarch/kernel/unaligned.c [new file with mode: 0644]
arch/loongarch/lib/Makefile
arch/loongarch/lib/unaligned.S [new file with mode: 0644]