[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 20/38] tcg/i386: implement fences
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [RFC 20/38] tcg/i386: implement fences |
Date: |
Sun, 23 Aug 2015 18:32:51 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
On 23/08/2015 17:23, Emilio G. Cota wrote:
> + case INDEX_op_fence_load:
> + tcg_out_fence(s, 0xe8);
> + break;
> + case INDEX_op_fence_full:
> + tcg_out_fence(s, 0xf0);
> + break;
> + case INDEX_op_fence_store:
> + tcg_out_fence(s, 0xf8);
> + break;
> +
lfence and sfence are not needed in generated code; all loads are
acquires and all stores are release on x86.
Also, on targets that do not have MFENCE you want to generate something
like "lock addl $0, (%esp)".
Paolo
- Re: [Qemu-devel] [RFC 05/38] thread-posix: inline qemu_spin functions, (continued)
- [Qemu-devel] [RFC 11/38] qemu-thread: handle spurious futex_wait wakeups, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 13/38] cputlb: add physical address to CPUTLBEntry, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 14/38] softmmu: add helpers to get ld/st physical addresses, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 17/38] aie: add target helpers, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 15/38] radix-tree: add generic lockless radix tree module, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 16/38] aie: add module for Atomic Instruction Emulation, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 20/38] tcg/i386: implement fences, Emilio G. Cota, 2015/08/23
- Re: [Qemu-devel] [RFC 20/38] tcg/i386: implement fences,
Paolo Bonzini <=
- [Qemu-devel] [RFC 29/38] tcg: export have_tb_lock, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 25/38] cpu: add barriers around cpu->tcg_exit_req, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 23/38] cpu-exec: grab iothread lock during interrupt handling, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 24/38] cpu-exec: reset mmap_lock after exiting the CPU loop, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 09/38] rcu: fix comment with s/rcu_gp_lock/rcu_registry_lock/, Emilio G. Cota, 2015/08/23