From: "J. Neuschäfer" <j.neuschaefer@gmx.net>
To: qemu-devel@nongnu.org, Laurent Vivier <laurent@vivier.eu>
Cc: "J. Neuschäfer" <j.neuschaefer@gmx.net>
Subject: [PATCH] linux-user/arm: Fix return value of SYS_cacheflush
Date: Fri, 13 Jun 2025 17:59:32 +0200 [thread overview]
Message-ID: <20250613-cache-v1-1-ee9f4a9ba81b@gmx.net> (raw)
Although the emulated cacheflush syscall does nothing, it still needs to
return zero to indicate success.
Signed-off-by: J. Neuschäfer <j.neuschaefer@gmx.net>
---
linux-user/arm/cpu_loop.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c
index e8417d040691a04a3edc0f5508f047571beac8fa..33f63951a958a5a48ced2d1e187264d691e5c940 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]);
---
base-commit: d9ce74873a6a5a7c504379857461e4ae64fcf0cd
change-id: 20250613-cache-723a77168c8e
Best regards,
--
J. Neuschäfer <j.neuschaefer@gmx.net>
next reply other threads:[~2025-06-13 16:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-13 15:59 J. Neuschäfer [this message]
2025-06-16 10:13 ` [PATCH] linux-user/arm: Fix return value of SYS_cacheflush Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250613-cache-v1-1-ee9f4a9ba81b@gmx.net \
--to=j.neuschaefer@gmx.net \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).