Skip to content

Commit

Permalink
Fix typo and remove outdated comment
Browse files Browse the repository at this point in the history
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
  • Loading branch information
henrybear327 committed Jul 10, 2024
1 parent 2436ecb commit 66dec82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 66dec82

Please sign in to comment.