summaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2016-09-16 09:24:20 -0700
committerRichard Henderson <rth@twiddle.net>2016-10-26 08:29:01 -0700
commit91682118aa330aff7e8ef0cc685c32d101f49940 (patch)
treee51cab99c1546cf19e81cf0e36429dc63eac29c8 /tcg
parentdf79b996a7b21c6ea7847f7927a2e1a294b86c72 (diff)
downloadqemu-91682118aa330aff7e8ef0cc685c32d101f49940.tar.gz
tcg: Emit barriers with parallel_cpus
Reviewed-by: Emilio G. Cota <cota@braap.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg-op.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c
index cdd61d678b..bb2bfeef3c 100644
--- a/tcg/tcg-op.c
+++ b/tcg/tcg-op.c
@@ -150,17 +150,7 @@ void tcg_gen_op6(TCGContext *ctx, TCGOpcode opc, TCGArg a1, TCGArg a2,
void tcg_gen_mb(TCGBar mb_type)
{
- bool emit_barriers = true;
-
-#ifndef CONFIG_USER_ONLY
- /* TODO: When MTTCG is available for system mode, we will check
- * the following condition and enable emit_barriers
- * (qemu_tcg_mttcg_enabled() && smp_cpus > 1)
- */
- emit_barriers = false;
-#endif
-
- if (emit_barriers) {
+ if (parallel_cpus) {
tcg_gen_op1(&tcg_ctx, INDEX_op_mb, mb_type);
}
}