Skip to content

Commit b67e6cf

Browse files
committed
Add comment on GEMMINI_XCPT_DEBUG
1 parent 63a8d43 commit b67e6cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/gemmini.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@ void handle_gemmini_xcpt(uint64_t rd) {
208208
gemmini_flush(0);
209209
}
210210

211+
// When GEMMINI_XCPT_DEBUG is set, software will be compiled
212+
// to check exception status in gemmini. Page faults will attempt
213+
// to be resolved in the handle_gemmini_xcpt_routine.
214+
// When GEMMINI_XCPT_DEBUG is unset, exception status will not be
215+
// checked, so software must not cause page faults in gemmini
211216
#ifdef GEMMINI_XCPT_DEBUG
212217
#define ROCC_INSTRUCTION_RD_RS1_RS2(x, rs1, rs2, funct) \
213218
ROCC_INSTRUCTION_RD_RS1_RS2_labeled(x, rs1, rs2, funct, 0)

0 commit comments

Comments
 (0)