Re: [PATCH] Loongarch: entry: fix syscall_get_arguments() VS no-bultin-memcpy

From: Xi Ruoyao
Date: Thu Aug 28 2025 - 03:12:32 EST


On Thu, 2025-08-28 at 15:09 +0800, Huacai Chen wrote:
> On Thu, Aug 28, 2025 at 3:06 PM Wentao Guan <guanwentao@xxxxxxxxxxxxx>
> wrote:
> >
> > Hello Ruoyao,
> >
> > Thanks for your review.
> > I will test and send test results later.
> > (use different gcc verions and remove the three flags.)
> I think kernel's memcpy is still needed for CPUs without UAL.

GCC memcpy expansion correctly understands no-UAL case. It won't
generate unaligned access unless -mno-strict-align.

--
Xi Ruoyao <xry111@xxxxxxxxxxx>