mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-23 05:27:30 -04:00
Respect jump done in controller for the eret instruction
This commit is contained in:
parent
6b22441367
commit
656c391215
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue