This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Check for lock without a lockable instruction
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 17 Nov 2009 08:09:07 +1030
- Subject: Re: PATCH: Check for lock without a lockable instruction
- References: <20091112185419.GA9923@lucon.org>
On Thu, Nov 12, 2009 at 10:54:19AM -0800, H.J. Lu wrote:
> The lock prefix is valid only on add, adc, and, btc, btr, bts, cmpxchg,
> cmpxch8b, dec, inc, neg, not, or, sbb, sub, xor, xadd and xchg with
> a memory operand.
Is this true for old processors? My recollection is that 286 and
earlier do not care.
--
Alan Modra
Australia Development Lab, IBM