[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 16/35] tcg: Emit barriers with parallel_cpus
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH v4 16/35] tcg: Emit barriers with parallel_cpus |
Date: |
Fri, 16 Sep 2016 10:46:38 -0700 |
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.5.5
- [Qemu-devel] [PATCH v4 01/35] atomics: add atomic_xor, (continued)
- [Qemu-devel] [PATCH v4 01/35] atomics: add atomic_xor, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 02/35] atomics: add atomic_op_fetch variants, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 04/35] int128: Use __int128 if available, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 03/35] exec: Avoid direct references to Int128 parts, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 05/35] int128: Add int128_make128, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 07/35] HACK: Always enable parallel_cpus, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 08/35] cputlb: Replace SHIFT with DATA_SIZE, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 10/35] cputlb: Remove includes from softmmu_template.h, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 09/35] cputlb: Move probe_write out of softmmu_template.h, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 12/35] cputlb: Tidy some macros, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 16/35] tcg: Emit barriers with parallel_cpus,
Richard Henderson <=
- [Qemu-devel] [PATCH v4 11/35] cputlb: Move most of iotlb code out of line, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 17/35] target-i386: emulate LOCK'ed cmpxchg using cmpxchg helpers, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 19/35] target-i386: emulate LOCK'ed INC using atomic helper, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 15/35] tcg: Add CONFIG_ATOMIC64, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 14/35] tcg: Add atomic128 helpers, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 24/35] target-i386: emulate XCHG using atomic helper, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 23/35] target-i386: emulate LOCK'ed BTX ops using atomic helpers, Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 25/35] target-i386: remove helper_lock(), Richard Henderson, 2016/09/16
- [Qemu-devel] [PATCH v4 26/35] tests: add atomic_add-bench, Richard Henderson, 2016/09/16