Respect jump done in controller for the eret instruction

This commit is contained in:
Andreas Traber 2016-02-16 17:21:24 +01:00
parent 6b22441367
commit 656c391215

View file

@ -279,8 +279,12 @@ module riscv_controller
if (eret_insn_i) begin
pc_mux_o = `PC_ERET;
pc_set_o = 1'b1;
exc_restore_id_o = 1'b1;
if ((~jump_done_q)) begin
pc_set_o = 1'b1;
jump_done = 1'b1;
end
end
// handle WFI instruction, flush pipeline and (potentially) go to