diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2022-05-02 11:15:40 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2022-06-28 04:41:37 +0530 |
| commit | 1b9177f7495086f1595d7c989c810013f1c9eb5a (patch) | |
| tree | 41469c64b92e70a3b352c170d28cedc590e09dcc /include/semihosting/syscalls.h | |
| parent | 2d010c2719da360d44a5c44d279d49eca21c5de8 (diff) | |
| download | focaccia-qemu-1b9177f7495086f1595d7c989c810013f1c9eb5a.tar.gz focaccia-qemu-1b9177f7495086f1595d7c989c810013f1c9eb5a.zip | |
semihosting: Create semihost_sys_poll_one
This will be used for implementing the xtensa select_one system call. Choose "poll" over "select" so that we can reuse Glib's g_poll constants and to avoid struct timeval. Reviewed-by: Luc Michel <lmichel@kalray.eu> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/semihosting/syscalls.h')
| -rw-r--r-- | include/semihosting/syscalls.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/semihosting/syscalls.h b/include/semihosting/syscalls.h index 347200cb9f..3a5ec229eb 100644 --- a/include/semihosting/syscalls.h +++ b/include/semihosting/syscalls.h @@ -69,4 +69,7 @@ void semihost_sys_system(CPUState *cs, gdb_syscall_complete_cb complete, void semihost_sys_gettimeofday(CPUState *cs, gdb_syscall_complete_cb complete, target_ulong tv_addr, target_ulong tz_addr); +void semihost_sys_poll_one(CPUState *cs, gdb_syscall_complete_cb complete, + int fd, GIOCondition cond, int timeout); + #endif /* SEMIHOSTING_SYSCALLS_H */ |