[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store-conditional properly. |
Date: |
Thu, 25 Mar 2010 11:19:40 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3 |
On 03/25/2010 10:40 AM, Blue Swirl wrote:
> Sparc V8 has two atomic instructions, ldstub and swap.
I know -- but not the CAS operation being discussed here.
As I think about this more and more, the Real Problem is
not with the CAS, but with the memory ordering requirements
of the guest vs the memory ordering of the host. It's easy
to implement things on x86, because of the host's strict
memory ordering. It would be much more difficult to properly
emulate x86 on a relaxed memory ordering host. We'd need to
insert barriers between pairs of qemu_{ld,st} operations.
I may give this some proper thinking this weekend.
r~
- [Qemu-devel] [PATCH 03/10] target-alpha: Implement rs/rc properly., (continued)
- [Qemu-devel] [PATCH 03/10] target-alpha: Implement rs/rc properly., Richard Henderson, 2010/03/24
- [Qemu-devel] [PATCH 10/10] target-alpha: Enable NPTL., Richard Henderson, 2010/03/24
- [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store-conditional properly., Richard Henderson, 2010/03/24
- Re: [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store-conditional properly., Nathan Froyd, 2010/03/25
- Re: [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store-conditional properly., Richard Henderson, 2010/03/25
- Re: [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store-conditional properly., Nathan Froyd, 2010/03/25
- Re: [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store-conditional properly., Richard Henderson, 2010/03/25
- Re: [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store-conditional properly., Nathan Froyd, 2010/03/25
- Re: [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store-conditional properly., Richard Henderson, 2010/03/25
- Re: [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store-conditional properly., Blue Swirl, 2010/03/25
- Re: [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store-conditional properly.,
Richard Henderson <=
- Re: [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store-conditional properly., Jamie Lokier, 2010/03/25
- Re: [Qemu-devel] [PATCH 09/10] target-alpha: Implement load-locked/store-conditional properly., Jamie Lokier, 2010/03/25
[Qemu-devel] [PATCH 08/10] target-alpha: Emit goto_tb opcodes., Richard Henderson, 2010/03/24
Re: [Qemu-devel] [PATCH 00/10, v3] target-alpha improvements, Jamie Lokier, 2010/03/25