From 272093f3281b54cbf0a14c3ccdd3c0cb47a28fb5 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 11 Mar 2020 16:35:35 -0700 Subject: Add comment explaining convoluted rv64mi-p-scall behavior --- isa/rv64si/scall.S | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'isa') diff --git a/isa/rv64si/scall.S b/isa/rv64si/scall.S index 82f202a..9956e03 100644 --- a/isa/rv64si/scall.S +++ b/isa/rv64si/scall.S @@ -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: -- cgit v1.1