This commit is contained in:
Katherine Parry 2022-07-03 21:41:13 -07:00
commit 7a139e0d71
3 changed files with 3 additions and 2 deletions

View File

@ -157,7 +157,7 @@ void softfloatInit(void) {
// RM: softfloat_round_min
softfloat_roundingMode = softfloat_round_near_even;
softfloat_exceptionFlags = 0; // clear exceptions
softfloat_detectTininess = softfloat_tininess_beforeRounding; // RISC-V behavior for tininess
softfloat_detectTininess = softfloat_tininess_afterRounding; // RISC-V behavior for tininess
}
uint64_t parseNum(char *num) {

View File

@ -37,7 +37,7 @@ void softfloatInit(void) {
// RM: softfloat_round_min
softfloat_roundingMode = softfloat_round_near_even;
softfloat_exceptionFlags = 0; // clear exceptions
softfloat_detectTininess = softfloat_tininess_beforeRounding; // RISC-V behavior for tininess
softfloat_detectTininess = softfloat_tininess_afterRounding; // RISC-V behavior for tininess
}
int main()

View File

@ -857,6 +857,7 @@ trap_handler_end_\MODE\(): // place to jump to so we can skip the trap handler a
addi a6, a6, 8
.endm
// Place this macro in peripheral tests to setup all the PLIC registers to generate external interrupts
.macro SETUP_PLIC
# Setup PLIC with a series of register writes