mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Improved CSRU coverage with priv.S
This commit is contained in:
		
							parent
							
								
									c917c1f563
								
							
						
					
					
						commit
						2738423441
					
				@ -44,10 +44,10 @@ string tvpaths[] = '{
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  string coverage64gc[] = '{
 | 
					  string coverage64gc[] = '{
 | 
				
			||||||
    `COVERAGE,
 | 
					    `COVERAGE,
 | 
				
			||||||
 | 
					    "priv",
 | 
				
			||||||
    "ieu",
 | 
					    "ieu",
 | 
				
			||||||
    "ebu",
 | 
					    "ebu",
 | 
				
			||||||
    "csrwrites",
 | 
					    "csrwrites",
 | 
				
			||||||
    "priv",
 | 
					 | 
				
			||||||
    "ifu",
 | 
					    "ifu",
 | 
				
			||||||
    "fpu",
 | 
					    "fpu",
 | 
				
			||||||
    "lsu",
 | 
					    "lsu",
 | 
				
			||||||
 | 
				
			|||||||
@ -92,6 +92,9 @@ sretdone:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    # writes to FCSR
 | 
					    # writes to FCSR
 | 
				
			||||||
    li t0, 1
 | 
					    li t0, 1
 | 
				
			||||||
 | 
					    slli t0, t0, 13
 | 
				
			||||||
 | 
					    csrs mstatus, t0
 | 
				
			||||||
 | 
					    li t0, 1
 | 
				
			||||||
    csrw fcsr, t0
 | 
					    csrw fcsr, t0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # switch to supervisor mode
 | 
					    # switch to supervisor mode
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user