diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-03-22 17:58:37 -0700 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2022-03-23 16:53:17 +0100 |
commit | 6e05e7047c7271aa27e0cdd243a20dfd6c8cada2 (patch) | |
tree | 01ea73608802e3a17ac86666bf70d4d6157bf074 /linux-user | |
parent | 879667433a2cd8a62f436c937575f6dcdb187a18 (diff) |
linux-user/arm: Implement __kernel_memory_barrier
This fallback syscall was stubbed out.
It would only matter for emulating pre-armv6.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220323005839.94327-2-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/arm/cpu_loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c index 032e1ffddf..a0e43b261c 100644 --- a/linux-user/arm/cpu_loop.c +++ b/linux-user/arm/cpu_loop.c @@ -158,7 +158,7 @@ do_kernel_trap(CPUARMState *env) switch (env->regs[15]) { case 0xffff0fa0: /* __kernel_memory_barrier */ - /* ??? No-op. Will need to do better for SMP. */ + smp_mb(); break; case 0xffff0fc0: /* __kernel_cmpxchg */ /* XXX: This only works between threads, not between processes. |