forked from Github_Repos/cvw
		
	fixed tininess detection in TestFloat examples, merged change in WALLY-TEST-LIB
This commit is contained in:
		
							parent
							
								
									bde1c5eb1b
								
							
						
					
					
						commit
						c830a0baf8
					
				| @ -157,7 +157,7 @@ void softfloatInit(void) { | |||||||
|     //                 RM:  softfloat_round_min
 |     //                 RM:  softfloat_round_min
 | ||||||
|     softfloat_roundingMode = softfloat_round_near_even;  |     softfloat_roundingMode = softfloat_round_near_even;  | ||||||
|     softfloat_exceptionFlags = 0; // clear exceptions
 |     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) { | uint64_t parseNum(char *num) { | ||||||
|  | |||||||
| @ -37,7 +37,7 @@ void softfloatInit(void) { | |||||||
|     //                 RM:  softfloat_round_min
 |     //                 RM:  softfloat_round_min
 | ||||||
|     softfloat_roundingMode = softfloat_round_near_even;  |     softfloat_roundingMode = softfloat_round_near_even;  | ||||||
|     softfloat_exceptionFlags = 0; // clear exceptions
 |     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() | int main() | ||||||
|  | |||||||
| @ -857,6 +857,7 @@ trap_handler_end_\MODE\(): // place to jump to so we can skip the trap handler a | |||||||
|     addi a6, a6, 8  |     addi a6, a6, 8  | ||||||
| .endm | .endm | ||||||
| 
 | 
 | ||||||
|  | // Place this macro in peripheral tests to setup all the PLIC registers to generate external interrupts
 | ||||||
| .macro SETUP_PLIC   | .macro SETUP_PLIC   | ||||||
|     # Setup PLIC with a series of register writes |     # Setup PLIC with a series of register writes | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user