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~
