Huacai Chen 4159680330 LoongArch: Make -mstrict-align configurable
Introduce Kconfig option ARCH_STRICT_ALIGN to make -mstrict-align be
configurable.

Not all LoongArch cores support h/w unaligned access, we can use the
-mstrict-align build parameter to prevent unaligned accesses.

CPUs with h/w unaligned access support:
Loongson-2K2000/2K3000/3A5000/3C5000/3D5000.

CPUs without h/w unaligned access support:
Loongson-2K500/2K1000.

This option is enabled by default to make the kernel be able to run on
all LoongArch systems. But you can disable it manually if you want to
run kernel only on systems with h/w unaligned access support in order to
optimise for performance.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2023-02-25 22:12:16 +08:00
..
2022-10-12 16:36:19 +08:00
2022-12-19 08:23:27 -06:00
2022-06-03 20:09:28 +08:00
2022-07-29 18:22:32 +08:00
2022-12-14 08:41:53 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-10-12 16:36:19 +08:00
2022-12-14 08:41:53 +08:00
2022-10-12 16:36:19 +08:00
2022-12-19 08:23:27 -06:00
2022-10-12 16:36:14 +08:00
2022-10-12 16:36:19 +08:00
2022-12-14 08:41:53 +08:00
2022-06-03 20:09:28 +08:00