|
| From: | Richard Henderson |
| Subject: | Re: [Qemu-devel] [RFC v2 PATCH 09/13] tcg/sparc: Add support for fence |
| Date: | Tue, 31 May 2016 13:45:53 -0700 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 |
On 05/31/2016 11:39 AM, Pranith Kumar wrote:
+ case INDEX_op_mb: + /* membar #LoadLoad|#LoadStore|#StoreStore|#StoreLoad */ + tcg_out32(s, MEMBAR | 15); + break;
With the argument, this needs to be
if (a0 == TCG_MB_WRITE) {
/* #StoreStore | #StoreLoad */
a0 = 0xa;
} else if (a0 == TCG_MB_READ) {
/* #LoadStore | #LoadLoad */
a0 = 0x5;
} else {
/* #StoreStore | #LoadStore | #StoreLoad | #LoadLoad */
a0 = 0xf;
}
tcg_out32(s, MEMBAR | a0);
r~
| [Prev in Thread] | Current Thread | [Next in Thread] |