tcontrol.mpte is not supposed to change on trap exit, unlike mstatus.mpie

This commit is contained in:
Luke Wren 2022-08-23 00:19:56 +01:00
parent 9e11c0e5a8
commit fef6d80fd4
1 changed files with 1 additions and 1 deletions

View File

@ -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