On 08/28/2017 02:41 PM, Pranith Kumar wrote: > On Mon, Aug 28, 2017 at 1:57 PM, Richard Henderson <r...@twiddle.net> wrote: >> On 08/27/2017 08:53 PM, Pranith Kumar wrote: >>> diff --git a/tcg/aarch64/tcg-target.h b/tcg/aarch64/tcg-target.h >>> index 55a46ac825..b41a248bee 100644 >>> --- a/tcg/aarch64/tcg-target.h >>> +++ b/tcg/aarch64/tcg-target.h >>> @@ -117,4 +117,6 @@ static inline void flush_icache_range(uintptr_t start, >>> uintptr_t stop) >>> __builtin___clear_cache((char *)start, (char *)stop); >>> } >>> >>> +#define TCG_TARGET_DEFAULT_MO (0) >>> + >>> #endif /* AARCH64_TCG_TARGET_H */ >> >> Please add all of these in one patch, separate from the tcg-op.c changes. >> We should also just make this mandatory and remove any related #ifdefs. > > I tried looking up ordering semantics for architectures like ia64 and > s390. It is not really clear. I think every arch but for x86 can be > defined as weak, even though archs like sparc can also be configured > as TSO. Is this right?
s390 has the same memory ordering as i386. But you're right that the risc chips should generally be 0. I'll try and figure out when sparc can use PSO (loosest for sparc < 8, and modern niagara), but leave it 0 for now. r~