This is an automated email from the ASF dual-hosted git repository.
anchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new e7fd9b1d49e arch/sim: add host_set_timeratio stub for Windows
e7fd9b1d49e is described below
commit e7fd9b1d49e73b2cc3e40d86eb7881d414874e07
Author: Lingao Meng <[email protected]>
AuthorDate: Mon Apr 27 12:01:17 2026 +0800
arch/sim: add host_set_timeratio stub for Windows
The simulated time ratio feature introduced a host_set_timeratio()
call in sim_head.c, but the Windows host time implementation was
missing this symbol, causing a link error. Add a no-op stub since
the time ratio feature is not implemented on Windows.
Signed-off-by: Lingao Meng <[email protected]>
---
arch/sim/src/sim/win/sim_hosttime.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/sim/src/sim/win/sim_hosttime.c
b/arch/sim/src/sim/win/sim_hosttime.c
index 1f0bbc9c8f4..3a88b98a600 100644
--- a/arch/sim/src/sim/win/sim_hosttime.c
+++ b/arch/sim/src/sim/win/sim_hosttime.c
@@ -150,6 +150,22 @@ int host_settimer(uint64_t nsec)
return -ENOSYS;
}
+/****************************************************************************
+ * Name: host_set_timeratio
+ *
+ * Description:
+ * Set the ratio of simulated time to real time in percent.
+ * Not implemented on Windows.
+ *
+ * Input Parameters:
+ * ratio - The new time ratio in percent
+ *
+ ****************************************************************************/
+
+void host_set_timeratio(int ratio)
+{
+}
+
/****************************************************************************
* Name: host_timerirq
*