Skip to content

Commit

Permalink
Merge branch 'mmu_unify_2' of github.com:planvtech/cva6 into mmu_unify_2
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelaGonzalezMarino committed Feb 19, 2024
2 parents f1c20f6 + 6840405 commit 91381cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/mmu_unify/cva6_mmu.sv
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ module cva6_mmu
// 2. We got an access error because of insufficient permissions -> throw an access exception
icache_areq_o.fetch_exception = '0;
// Check whether we are allowed to access this memory region from a fetch perspective
iaccess_err[0] = icache_areq_i.fetch_req && (enable_translation_i[0] || HYP_EXT==0) && //
(((priv_lvl_i == riscv::PRIV_LVL_U) && ~itlb_content[0].u) //
|| ((priv_lvl_i == riscv::PRIV_LVL_S) && itlb_content[0].u));
iaccess_err[0] = icache_areq_i.fetch_req && (enable_translation_i[0] || HYP_EXT == 0) && //
(((priv_lvl_i == riscv::PRIV_LVL_U) && ~itlb_content[0].u) //
|| ((priv_lvl_i == riscv::PRIV_LVL_S) && itlb_content[0].u));

if (HYP_EXT == 1)
iaccess_err[HYP_EXT] = icache_areq_i.fetch_req && enable_translation_i[HYP_EXT] && !itlb_content[HYP_EXT].u;
Expand Down

0 comments on commit 91381cd

Please sign in to comment.