Skip to content

Commit 82f72fa

Browse files
p-wojadrabarek
authored andcommitted
[#59539] riscv: Remove unused MSTATUS_MPP assignment
1 parent 75c7e49 commit 82f72fa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/riscv/op_helper.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,6 @@ target_ulong helper_mret(CPUState *env, target_ulong cpu_pc_deb)
878878
set_field(mstatus, env->privilege_architecture >= RISCV_PRIV1_10 ? MSTATUS_MIE : 1 << prev_priv,
879879
get_field(mstatus, MSTATUS_MPIE));
880880
mstatus = set_field(mstatus, MSTATUS_MPIE, 1);
881-
mstatus = set_field(mstatus, MSTATUS_MPP, riscv_has_ext(env, RISCV_FEATURE_RVU) ? PRV_U : PRV_M);
882881
mstatus = set_field(mstatus, MSTATUS_MPP, PRV_U);
883882
if (env->privilege_architecture >= RISCV_PRIV1_12 && prev_priv != PRV_M) {
884883
mstatus = set_field(mstatus, MSTATUS_MPRV, 0);

0 commit comments

Comments
 (0)