qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 6/9] linux-user: Split safe-syscall macro into its own hea


From: Richard Henderson
Subject: Re: [PATCH v2 6/9] linux-user: Split safe-syscall macro into its own header
Date: Sun, 12 Sep 2021 09:23:30 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 9/8/21 8:44 AM, Peter Maydell wrote:
Split the safe-syscall macro from qemu.h into a new safe-syscall.h.

Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé<f4bug@amsat.org>
---
  linux-user/qemu.h         | 135 ---------------------------------
  linux-user/safe-syscall.h | 154 ++++++++++++++++++++++++++++++++++++++
  linux-user/syscall.c      |   1 +
  3 files changed, 155 insertions(+), 135 deletions(-)
  create mode 100644 linux-user/safe-syscall.h

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


+#else
+
+/*
+ * Fallback for architectures which don't yet provide a safe-syscall assembly
+ * fragment; note that this is racy!
+ * This should go away when all host architectures have been updated.
+ */
+#define safe_syscall syscall

All native tcg hosts have been updated. All that is left are those for which we fall back to tci. At what point do we drop the fallback and simply make this a build error?


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]