On 05/31/2016 11:39 AM, Pranith Kumar wrote:
+    case INDEX_op_mb:
+        tcg_out_mb(s);

You need to look at the barrier type and DTRT. In particular, the Linux smp_rmb and smp_wmb types need not emit any code.

+    { INDEX_op_mb, { "r" } },

You certainly do *not* need the constant argument loaded into a register. This should remain { }.


r~

Reply via email to