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

2016-05-31 Thread Richard Henderson
On 05/31/2016 11:39 AM, Pranith Kumar wrote: +#define HWSYNC XO31(598) +#define LWSYNC (HWSYNC | (1u << 21)) ... +case INDEX_op_mb: +/* ??? Do we want SEQ_CST or ACQ_REL memory model. */ +tcg_out32(s, HWSYNC); +break; With the flags argument, this needs to be #de

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

2016-05-31 Thread Pranith Kumar
Signed-off-by: Richard Henderson Signed-off-by: Pranith Kumar --- tcg/ppc/tcg-target.inc.c | 8 1 file changed, 8 insertions(+) diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c index 1039407..45a667f 100644 --- a/tcg/ppc/tcg-target.inc.c +++ b/tcg/ppc/tcg-target.inc.c @