mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Prevented writes to SATP enabling SV57. This follows the spec more accurately. Linux can now successfully probe SATP.
This commit is contained in:
		
							parent
							
								
									7505ab3f4a
								
							
						
					
					
						commit
						0f29587b0b
					
				@ -88,7 +88,8 @@ module csrs import cvw::*;  #(parameter cvw_t P) (
 | 
			
		||||
  assign WriteSEPCM       = STrapM | (CSRSWriteM & (CSRAdrM == SEPC));
 | 
			
		||||
  assign WriteSCAUSEM     = STrapM | (CSRSWriteM & (CSRAdrM == SCAUSE));
 | 
			
		||||
  assign WriteSTVALM      = STrapM | (CSRSWriteM & (CSRAdrM == STVAL));
 | 
			
		||||
  assign WriteSATPM       = CSRSWriteM & (CSRAdrM == SATP) & (PrivilegeModeW == P.M_MODE | ~STATUS_TVM);
 | 
			
		||||
  // assign WriteSATPM       = CSRSWriteM & (CSRAdrM == SATP) & (PrivilegeModeW == P.M_MODE | ~STATUS_TVM);
 | 
			
		||||
  assign WriteSATPM       = CSRSWriteM & (CSRAdrM == SATP) & (PrivilegeModeW == P.M_MODE | ~STATUS_TVM) & (CSRWriteValM[63:60] != 4'hA);
 | 
			
		||||
  assign WriteSCOUNTERENM = CSRSWriteM & (CSRAdrM == SCOUNTEREN);
 | 
			
		||||
  assign WriteSENVCFGM    = CSRSWriteM & (CSRAdrM == SENVCFG);
 | 
			
		||||
  assign WriteSTIMECMPM   = CSRSWriteM & (CSRAdrM == STIMECMP) & STCE;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user