[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH qemu 1/2] semihosting: Added to support GDB_O_APPEND flag of host
From: |
~foxes |
Subject: |
[PATCH qemu 1/2] semihosting: Added to support GDB_O_APPEND flag of host_open() |
Date: |
Thu, 08 Jun 2023 17:07:59 +0800 |
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;
}
--
2.38.5
- [PATCH qemu 1/2] semihosting: Added to support GDB_O_APPEND flag of host_open(),
~foxes <=