qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH qemu 1/2] semihosting: Added to support GDB_O_APPEND flag of


From: Richard Henderson
Subject: Re: [PATCH qemu 1/2] semihosting: Added to support GDB_O_APPEND flag of host_open()
Date: Tue, 20 Jun 2023 09:30:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 6/8/23 11:07, ~foxes wrote:
From: Foxes Hung <foxes687@andestech.com>

Signed-off-by: Foxes Hung <foxes687@andestech.com>
---
  semihosting/syscalls.c | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/semihosting/syscalls.c b/semihosting/syscalls.c
index 68899ebb1c..1a5d39da01 100644
--- a/semihosting/syscalls.c
+++ b/semihosting/syscalls.c
@@ -281,6 +281,9 @@ static void host_open(CPUState *cs, gdb_syscall_complete_cb 
complete,
      if (gdb_flags & GDB_O_TRUNC) {
          host_flags |= O_TRUNC;
      }
+    if (gdb_flags & GDB_O_APPEND) {
+        host_flags |= O_APPEND;
+    }
      if (gdb_flags & GDB_O_EXCL) {
          host_flags |= O_EXCL;
      }

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

r~



reply via email to

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