forked from Github_Repos/cvw
		
	Merge pull request #182 from dherreravicioso/main
Added test cases to write to CSRs
This commit is contained in:
		
						commit
						1cd98027de
					
				@ -36,4 +36,11 @@ main:
 | 
				
			|||||||
    addi t0, zero, 0
 | 
					    addi t0, zero, 0
 | 
				
			||||||
    csrr t0, stimecmp 
 | 
					    csrr t0, stimecmp 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Test write to STVAL, SCAUSE, SEPC, and STIMECMP CSRs
 | 
				
			||||||
 | 
					    li t0, 0
 | 
				
			||||||
 | 
					    csrw stval, t0
 | 
				
			||||||
 | 
					    csrw scause, t0
 | 
				
			||||||
 | 
					    csrw sepc, t0
 | 
				
			||||||
 | 
					    csrw stimecmp, t0
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
    j done
 | 
					    j done
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user