[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 16/35] tcg: Emit barriers with parallel_cpus
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PULL 16/35] tcg: Emit barriers with parallel_cpus |
Date: |
Sat, 22 Oct 2016 14:05:05 -0700 |
Reviewed-by: Emilio G. Cota <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
tcg/tcg-op.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c
index cdd61d6..bb2bfee 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);
}
}
--
2.7.4
- [Qemu-devel] [PULL 08/35] cputlb: Replace SHIFT with DATA_SIZE, (continued)
- [Qemu-devel] [PULL 08/35] cputlb: Replace SHIFT with DATA_SIZE, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 11/35] cputlb: Move most of iotlb code out of line, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 14/35] tcg: Add atomic128 helpers, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 12/35] cputlb: Tidy some macros, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 15/35] tcg: Add CONFIG_ATOMIC64, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 21/35] target-i386: emulate LOCK'ed NEG using cmpxchg helper, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 18/35] target-i386: emulate LOCK'ed OP instructions using atomic helpers, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 22/35] target-i386: emulate LOCK'ed XADD using atomic helper, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 20/35] target-i386: emulate LOCK'ed NOT using atomic helper, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 19/35] target-i386: emulate LOCK'ed INC using atomic helper, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 16/35] tcg: Emit barriers with parallel_cpus,
Richard Henderson <=
- [Qemu-devel] [PULL 24/35] target-i386: emulate XCHG using atomic helper, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 23/35] target-i386: emulate LOCK'ed BTX ops using atomic helpers, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 26/35] tests: add atomic_add-bench, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 17/35] target-i386: emulate LOCK'ed cmpxchg using cmpxchg helpers, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 29/35] target-arm: emulate SWP with atomic_xchg helper, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 28/35] target-arm: emulate LL/SC using cmpxchg helpers, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 13/35] tcg: Add atomic helpers, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 25/35] target-i386: remove helper_lock(), Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 32/35] linux-user: remove handling of aarch64's EXCP_STREX, Richard Henderson, 2016/10/22
- [Qemu-devel] [PULL 30/35] target-arm: emulate aarch64's LL/SC using cmpxchg helpers, Richard Henderson, 2016/10/22