Skip to content

Commit

Permalink
linux-user/arm: Implement __kernel_memory_barrier
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rth7680 authored and vivier committed Mar 23, 2022
1 parent 8796674 commit 6e05e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux-user/arm/cpu_loop.c
Expand Up @@ -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.
Expand Down

0 comments on commit 6e05e70

Please sign in to comment.