Skip to content

Commit 3bdabc8

Browse files
authored
Improve comment about CSR (#70)
1 parent 6a69213 commit 3bdabc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/emulate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ static bool csr_is_writable(uint32_t csr)
705705
return csr < 0xc00;
706706
}
707707

708-
/* perform csrrw */
708+
/* perform csrrw (atoimc read and write) */
709709
static uint32_t csr_csrrw(struct riscv_t *rv, uint32_t csr, uint32_t val)
710710
{
711711
uint32_t *c = csr_get_ptr(rv, csr);
@@ -2154,4 +2154,4 @@ void ecall_handler(struct riscv_t *rv)
21542154
assert(rv);
21552155
rv_except_ecall_M(rv, 0);
21562156
syscall_handler(rv);
2157-
}
2157+
}

0 commit comments

Comments
 (0)