[PATCH] ARM: Add SWP/SWPB emulation for ARMv7 processors (v6)
Siarhei Siamashka
siarhei.siamashka at nokia.com
Thu Jul 29 06:13:29 EDT 2010
On Wednesday 28 July 2010 09:06:49 ext Pavel Machek wrote:
> On Mon 2010-07-19 22:02:12, Linus Walleij wrote:
> > 2010/7/19 Kirill A. Shutemov <kirill at shutemov.name>:
> > > Why do we need this? Why do not just fix broken programs?
> >
> > People tend to use some third-party precompiled binaries, some of
> > them compiled with a compiler using SWP.
>
> Why not just let the cpu emulate it? It surely will be faster...?
IMHO, being able to identify the usage of SWP instructions and fix bad
programs eventually (by spamming the said third-party programs bugtrackers) is
a good enough reason.
That's somewhat similar to userspace unaligned memory accesses handling,
except that the kernel being totally silent about them by default is not
helping much in practice.
--
Best regards,
Siarhei Siamashka
More information about the linux-arm-kernel
mailing list