1
0
Fork 0

fixed eret instruction

This commit is contained in:
Rimas Avizienis 2011-11-10 00:37:00 -08:00
parent 62407b4668
commit fbfa356d2a
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ class rocketCtrl extends Component
// FIXME: dtlb exception handling broken, need to move cause value generation
// to mem stage. also should probably move it from dpath to ctrl
io.dpath.sel_pc :=
Mux(io.dpath.exception || io.dtlb_xcpt, PC_PCR,
Mux(io.dpath.exception || io.dtlb_xcpt || mem_reg_eret, PC_PCR,
Mux(replay_ex || replay_mem || mem_reg_privileged, PC_EX,
Mux(!ex_reg_btb_hit && br_taken, PC_BR,
Mux(ex_reg_btb_hit && !br_taken, PC_EX4,