Skip to content

Commit 9f5c057

Browse files
authored
Merge pull request #468 from henrybear327/fix/typo
Fix a typo and remove outdated comment
2 parents 2436ecb + 66dec82 commit 9f5c057

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/emulate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ RV_EXCEPTION_LIST
139139
return false; \
140140
}
141141

142-
/* get current time in microsecnds and update csr_time register */
142+
/* get current time in microseconds and update csr_time register */
143143
static inline void update_time(riscv_t *rv)
144144
{
145145
struct timeval tv;

src/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void rv_clock_gettime(struct timespec *tp)
6464
int32_t tv_sec, tv_nsec;
6565
get_time_info(&tv_sec, &tv_nsec);
6666
tp->tv_sec = tv_sec;
67-
tp->tv_nsec = tv_nsec; /* Transfer to microseconds */
67+
tp->tv_nsec = tv_nsec;
6868
}
6969

7070
char *sanitize_path(const char *input)

0 commit comments

Comments
 (0)