Skip to content

Commit

Permalink
Improve comment about CSR (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
EagleTw authored Oct 16, 2022
1 parent 6a69213 commit 3bdabc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ static bool csr_is_writable(uint32_t csr)
return csr < 0xc00;
}

/* perform csrrw */
/* perform csrrw (atoimc read and write) */
static uint32_t csr_csrrw(struct riscv_t *rv, uint32_t csr, uint32_t val)
{
uint32_t *c = csr_get_ptr(rv, csr);
Expand Down Expand Up @@ -2154,4 +2154,4 @@ void ecall_handler(struct riscv_t *rv)
assert(rv);
rv_except_ecall_M(rv, 0);
syscall_handler(rv);
}
}

0 comments on commit 3bdabc8

Please # to comment.