aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ. Neuschäfer <j.neuschaefer@gmx.net>2025-06-13 17:59:32 +0200
committerPeter Maydell <peter.maydell@linaro.org>2025-06-16 11:26:25 +0100
commit5ad2b1f443a96444cf3e7a2fbe17aae696201012 (patch)
tree621f6f24ee39625f53319db90c49daeffe71dc50
parentcd38e638c43e4d5d3fd65dd4529c2e6153c9c408 (diff)
downloadqemu-5ad2b1f443a96444cf3e7a2fbe17aae696201012.zip
qemu-5ad2b1f443a96444cf3e7a2fbe17aae696201012.tar.gz
qemu-5ad2b1f443a96444cf3e7a2fbe17aae696201012.tar.bz2
linux-user/arm: Fix return value of SYS_cacheflush
Although the emulated cacheflush syscall does nothing, it still needs to return zero to indicate success. Cc: qemu-stable@nongnu.org Signed-off-by: J. Neuschäfer <j.neuschaefer@gmx.net> Message-id: 20250613-cache-v1-1-ee9f4a9ba81b@gmx.net Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--linux-user/arm/cpu_loop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c
index e8417d0..33f6395 100644
--- a/linux-user/arm/cpu_loop.c
+++ b/linux-user/arm/cpu_loop.c
@@ -363,6 +363,7 @@ void cpu_loop(CPUARMState *env)
switch (n) {
case ARM_NR_cacheflush:
/* nop */
+ env->regs[0] = 0;
break;
case ARM_NR_set_tls:
cpu_set_tls(env, env->regs[0]);