Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fatimasaleem committed Dec 12, 2024
1 parent 4b1314b commit 1a8edc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/cva6_mmu/cva6_mmu.sv
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ module cva6_mmu
lsu_exception_o = misaligned_ex_i;

// we work with SV39 or SV32, so if VM is enabled, check that all bits [CVA6Cfg.VLEN-1:CVA6Cfg.SV-1] are equal to bit [CVA6Cfg.SV]
canonical_addr_check = if (lsu_req_i && en_ld_st_translation_i
canonical_addr_check = (lsu_req_i && en_ld_st_translation_i &&
!((&lsu_vaddr_i[CVA6Cfg.VLEN-1:CVA6Cfg.SV-1]) == [CVA6Cfg.SV] || (|lsu_vaddr_i[CVA6Cfg.VLEN-1:CVA6Cfg.SV-1]) == [CVA6Cfg.SV]));

// Check if the User flag is set, then we may only access it in supervisor mode
Expand Down

0 comments on commit 1a8edc2

Please sign in to comment.