From 66dec82a1bc9fe792dacace199aada34324f62b6 Mon Sep 17 00:00:00 2001 From: Chun-Hung Tseng Date: Thu, 4 Jul 2024 01:13:58 +0200 Subject: [PATCH] Fix typo and remove outdated comment Signed-off-by: Chun-Hung Tseng --- src/emulate.c | 2 +- src/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emulate.c b/src/emulate.c index e156aaba..a8856afb 100644 --- a/src/emulate.c +++ b/src/emulate.c @@ -139,7 +139,7 @@ RV_EXCEPTION_LIST return false; \ } -/* get current time in microsecnds and update csr_time register */ +/* get current time in microseconds and update csr_time register */ static inline void update_time(riscv_t *rv) { struct timeval tv; diff --git a/src/utils.c b/src/utils.c index 1a42250a..c086633b 100644 --- a/src/utils.c +++ b/src/utils.c @@ -64,7 +64,7 @@ void rv_clock_gettime(struct timespec *tp) int32_t tv_sec, tv_nsec; get_time_info(&tv_sec, &tv_nsec); tp->tv_sec = tv_sec; - tp->tv_nsec = tv_nsec; /* Transfer to microseconds */ + tp->tv_nsec = tv_nsec; } char *sanitize_path(const char *input)