mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-22 21:27:10 -04:00
instr_queue.sv: take exception cause from active port
This commit is contained in:
parent
8f0528dea3
commit
dcea6c97d4
1 changed files with 5 additions and 5 deletions
|
@ -222,12 +222,12 @@ module instr_queue (
|
|||
fetch_entry_o.branch_predict.cf = ariane_pkg::NoCF;
|
||||
// output mux select
|
||||
for (int unsigned i = 0; i < ariane_pkg::INSTR_PER_FETCH; i++) begin
|
||||
if (instr_data_out[i].ex == ariane_pkg::FE_INSTR_ACCESS_FAULT) begin
|
||||
fetch_entry_o.ex.cause = riscv::INSTR_ACCESS_FAULT;
|
||||
end else begin
|
||||
fetch_entry_o.ex.cause = riscv::INSTR_PAGE_FAULT;
|
||||
end
|
||||
if (idx_ds_q[i]) begin
|
||||
if (instr_data_out[i].ex == ariane_pkg::FE_INSTR_ACCESS_FAULT) begin
|
||||
fetch_entry_o.ex.cause = riscv::INSTR_ACCESS_FAULT;
|
||||
end else begin
|
||||
fetch_entry_o.ex.cause = riscv::INSTR_PAGE_FAULT;
|
||||
end
|
||||
fetch_entry_o.instruction = instr_data_out[i].instr;
|
||||
fetch_entry_o.ex.valid = instr_data_out[i].ex != ariane_pkg::FE_NONE;
|
||||
// TODO(zarubaf,moschn): Might need some fixes with illegal access exceptions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue