Fix tdata1.dmode being writable from M-mode
This commit is contained in:
		
							parent
							
								
									04f138ae0e
								
							
						
					
					
						commit
						9e11c0e5a8
					
				
							
								
								
									
										1410
									
								
								doc/hazard3.pdf
								
								
								
								
							
							
						
						
									
										1410
									
								
								doc/hazard3.pdf
								
								
								
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							|  | @ -75,7 +75,9 @@ always @ (posedge clk or negedge rst_n) begin: cfg_update | |||
| 		// Handle writes to tselect-indexed registers (note writes to D-mode | ||||
| 		// triggers in non-D-mode are ignored rather than raising an exception) | ||||
| 		if (cfg_addr == TDATA1) begin | ||||
| 			tdata1_dmode[tselect] <= cfg_wdata[27]; | ||||
| 			if (d_mode) begin | ||||
| 				tdata1_dmode[tselect] <= cfg_wdata[27]; | ||||
| 			end | ||||
| 			mcontrol_action[tselect] <= cfg_wdata[12]; | ||||
| 			mcontrol_m[tselect] <= cfg_wdata[6]; | ||||
| 			mcontrol_u[tselect] <= cfg_wdata[3]; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue