Skip to content

Commit

Permalink
Add comment explaining convoluted rv64mi-p-scall behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman committed Mar 11, 2020
1 parent ee576c0 commit 272093f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions isa/rv64si/scall.S
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ do_scall:

TEST_PASSFAIL

# Depending on the test environment, the M-mode version of this test might
# not actually invoke the following handler. Instead, the usual ECALL
# handler in the test environment might detect the CAUSE_USER_ECALL or
# CAUSE_MACHINE_ECALL exception and mark the test as having passed.
# Either way, we'll get the coverage we desire: such a handler must check
# both mcause and TESTNUM, just like the following handler.
.align 2
.global stvec_handler
stvec_handler:
Expand Down

0 comments on commit 272093f

Please sign in to comment.