Re: [Qemu-devel] [RFC v2 PATCH 09/13] tcg/sparc: Add support for fence

2016-05-31 Thread Richard Henderson
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 | #Stor

[Qemu-devel] [RFC v2 PATCH 09/13] tcg/sparc: Add support for fence

2016-05-31 Thread Pranith Kumar
Cc: Blue Swirl Signed-off-by: Richard Henderson Signed-off-by: Pranith Kumar --- tcg/sparc/tcg-target.inc.c | 8 1 file changed, 8 insertions(+) diff --git a/tcg/sparc/tcg-target.inc.c b/tcg/sparc/tcg-target.inc.c index a611885..81f263f 100644 --- a/tcg/sparc/tcg-target.inc.c +++ b/tc