From: Richard Henderson
Date: Wed, 30 Nov 2011 13:12:35 -0800
> On 11/30/2011 12:33 PM, David Miller wrote:
>> From: Richard Henderson
>> Date: Wed, 30 Nov 2011 10:40:36 -0800
>>
>>> On 11/30/2011 09:44 AM, David Miller wrote:
So one thing to consider doing is, if there is some doubt, to s
On 11/30/2011 12:33 PM, David Miller wrote:
> From: Richard Henderson
> Date: Wed, 30 Nov 2011 10:40:36 -0800
>
>> On 11/30/2011 09:44 AM, David Miller wrote:
>>> So one thing to consider doing is, if there is some doubt, to set
>>> it explicitly to TSO in some crt code.
>>
>> ... easier to keep
From: Richard Henderson
Date: Wed, 30 Nov 2011 10:40:36 -0800
> On 11/30/2011 09:44 AM, David Miller wrote:
>> So one thing to consider doing is, if there is some doubt, to set
>> it explicitly to TSO in some crt code.
>
> ... easier to keep the RMO/PSO default in that case.
I'd rather you use
On 11/30/2011 09:44 AM, David Miller wrote:
> Linux originally did RMO but I killed that several years ago, no
> new chips are implementing RMO and this means all the necessary
> membar instructions are nothing but pure overhead.
Well, you've now got the option for -mmemory-model=sc to omit every
From: Richard Henderson
Date: Wed, 30 Nov 2011 08:39:44 -0800
> I've committed this sequence to mainline after re-testing on
> sparc64-linux.
I've got a regstrap running on Niagara-3, sorry for taking so long :-/
> As a follow-up, I have a patch to change the default memory model to
> TSO for a
On 11/28/2011 10:12 AM, Richard Henderson wrote:
> Richard Henderson (5):
> sparc: Convert to mem_thread_fence.
> sparc: Convert to atomic_load/store.
> sparc: Convert to atomic_compare_and_swap.
> sparc: Convert to atomic_exchange.
> sparc: Add -mmemory-model command-line option.
>
> g
Changes v1->v2:
* DImode fixes.
* Use the new atomic_test_and_set optab for LDSTUB.
* Change -mmmodel to -mmemory-model and document it.
r~
Richard Henderson (5):
sparc: Convert to mem_thread_fence.
sparc: Convert to atomic_load/store.
sparc: Convert to atomic_compare_and_swap.
sp