pae: tlbflush linear page table updates
Quoted 5 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Friday, August 12, 2005 5:21 PMQuoted 1 line · Keir Fraser
Quoted 8 lines
Quoted 3 lines
The compiler will never alias inputs. In this case it is forced to alias the output constraint with input retval, and so the output cannot alias with any other input (which would be an error).
Actually it will sometimes. That is what the "early clobber" (&) prevents. Perhaps it should be used here.
-Andi
"early clobber" is good to prevent output alias as input, if that output may be clobbered before input is used. However there seems no point to simply alias among inputs. Or else, the only way I can see is that compiler insert some extra lines in the middle of inline asm... Any benefit for this likelihood?
Thanks,
Kevin
Quoted 5 lines
"early clobber" is good to prevent output alias as input, if that output may be clobbered before input is used. However there seems no point to simply alias among inputs. Or else, the only way I can see is that compiler insert some extra lines in the middle of inline asm... Any benefit for this likelihood?
There can be cases e.g. when the inputs are dependent and you use general enough constraints. e.g. one input can be %reg and the other offset(%reg). In this case they will essentially alias.
-Andi
Quoted 9 lines · Andi Kleen
Quoted 5 lines
"early clobber" is good to prevent output alias as input, if that output may be clobbered before input is used. However there seems no point to simply alias among inputs. Or else, the only way I can see is that compiler insert some extra lines in the middle of inline asm... Any benefit for this likelihood?
There can be cases e.g. when the inputs are dependent and you use general enough constraints. e.g. one input can be %reg and the other offset(%reg). In this case they will essentially alias.
That would be a nasty one to track down. :-)
It seems the general policy in Linux also is not to bother with '&' on outputs that have a forced alias in the input list. I'd be happy to see a cleanup patch that adds more '&'s to Xen though -- in cases where we are relying on the forced alias then it's unlikely to change the generated assembly code.
-- Keir