diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-09-23 13:14:09 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-09-24 10:29:43 -0700 |
| commit | 430014bee7a6c26a70e9f3854428843d5918cdf5 (patch) | |
| tree | 2051589852633b77e63a5b5423787692f86c91f2 /linux-user/syscall.c | |
| parent | 7330741b3e4bc4b1b32e85b9c1372f44c896c4da (diff) | |
| download | focaccia-qemu-430014bee7a6c26a70e9f3854428843d5918cdf5.tar.gz focaccia-qemu-430014bee7a6c26a70e9f3854428843d5918cdf5.zip | |
linux-user: Split out begin_parallel_context
Move the test/flush/set block to a new function. Use tb_flush__exclusive_or_serial while we're at it. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/syscall.c')
| -rw-r--r-- | linux-user/syscall.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 9098cdb9fa..1a5f2a03f9 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -27,8 +27,6 @@ #include "target_mman.h" #include "exec/page-protection.h" #include "exec/mmap-lock.h" -#include "exec/tb-flush.h" -#include "exec/translation-block.h" #include <elf.h> #include <endian.h> #include <grp.h> @@ -6667,10 +6665,7 @@ static int do_fork(CPUArchState *env, unsigned int flags, abi_ulong newsp, * generate code for parallel execution and flush old translations. * Do this now so that the copy gets CF_PARALLEL too. */ - if (!tcg_cflags_has(cpu, CF_PARALLEL)) { - tcg_cflags_set(cpu, CF_PARALLEL); - tb_flush(cpu); - } + begin_parallel_context(cpu); /* we create a new CPU instance. */ new_env = cpu_copy(env); |