diff --git a/hdl/hazard3_csr.v b/hdl/hazard3_csr.v index 234392e..1773c76 100644 --- a/hdl/hazard3_csr.v +++ b/hdl/hazard3_csr.v @@ -644,7 +644,7 @@ always @ (posedge clk or negedge rst_n) begin tcontrol_mpte <= tcontrol_mte; end else if (DEBUG_SUPPORT && trapreg_update_exit) begin tcontrol_mte <= tcontrol_mpte; - tcontrol_mpte <= 1'b1; + // Unlike mstatus.mie/mpie, tcontrol.mpte is unchanged by trap exit. end end