mirror of
https://github.com/openhwgroup/cva5.git
synced 2025-04-22 21:17:46 -04:00
Fix mmu level two page check
This commit is contained in:
parent
6618c0bec7
commit
e72c948cfa
1 changed files with 3 additions and 3 deletions
|
@ -144,10 +144,10 @@ module mmu
|
|||
next_state = 2**WAIT_REQUEST_2;
|
||||
state[WAIT_REQUEST_2] :
|
||||
if (l1_response.data_valid & ~discard_data) begin
|
||||
if (perms_valid)
|
||||
next_state = 2**COMPLETE_SUCCESS;
|
||||
else
|
||||
if (~perms_valid | ~pte.perms.v | (~pte.perms.r & pte.perms.w)) //perm fail or invalid
|
||||
next_state = 2**COMPLETE_FAULT;
|
||||
else
|
||||
next_state = 2**COMPLETE_SUCCESS;
|
||||
end
|
||||
state[COMPLETE_SUCCESS], state[COMPLETE_FAULT] :
|
||||
next_state = 2**IDLE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue