[PATCH] ARM: Add SWP/SWPB emulation for ARMv7 processors (v6)
Pavel Machek
pavel at ucw.cz
Thu Jul 29 15:28:56 EDT 2010
On Thu 2010-07-29 13:13:29, Siarhei Siamashka wrote:
> 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.
Why do we need _emulation_ for that?
Either you care about compatibility, then you let the CPU emulate SWP,
or you want to fix your userspace, so you turn off SWP emulation and
see what breaks.
I believe emulation just to annoy users into submitting bugreports is
serious overengineering.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
More information about the linux-arm-kernel
mailing list