lkml.org 
[lkml]   [2023]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V2] LoongArch: Make -mstrict-align configurable
On Wed, Feb 8, 2023, at 15:05, Huacai Chen wrote:
> 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.
>
> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>

Reviewed-by: Arnd Bergmann <arnd@arndb.de>

\
 
 \ /
  Last update: 2023-03-27 00:15    [W:0.048 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site