Re: [PATCH] x86: fix ordering constraints on crX read/writes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeremy Fitzhardinge
Date: Thursday, July 15, 2010 - 12:57 pm

On 07/15/2010 12:36 PM, H. Peter Anvin wrote:

Yes, I think it reads fairly ambigiously.  The first two and last
sentences definitely read as if "memory" not only says that all memory
could be modified by the asm, but could also be used as an input by the
asm, and therefore prevents two-way reordering of the asm with respect
to memory operations.

But I don't know how to parse the "volatile" sentence, I guess because
they're using the term "side-effect" in a *very* specific way which
means something other than "accessed in an unpredictable way".  Maybe
the memory clobber means it doesn't cache things in registers, but the
most recent version of some memory contents may not be stored in its
"home" location?  Or something to do with alias analysis?


Yes, and it means they're stuck trying to support a compiler-internal
implementation as an external API.  But it really means you end up
having to go to the source and rummage around in md files to really work
out what the syntax is, let alone what the more subtle semantics are.

    J
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: fix ordering constraints on crX read/writes, Jeremy Fitzhardinge, (Wed Jul 14, 3:12 pm)
Re: [PATCH] x86: fix ordering constraints on crX read/writes, Jeremy Fitzhardinge, (Wed Jul 14, 5:55 pm)
Re: [PATCH] x86: fix ordering constraints on crX read/writes, Jeremy Fitzhardinge, (Thu Jul 15, 7:34 am)
Re: [PATCH] x86: fix ordering constraints on crX read/writes, H. Peter Anvin, (Thu Jul 15, 11:54 am)