Skip to content

Conversation

@inochisa
Copy link
Contributor

This PR includes two changes:

  1. Convert the newTranslationPort input payload as a separate for easy expansion.
  2. Move TLB permission check from LSU to MMU.

The second change can be used a mask for the permission check, as only PAGE_FAULT/ACCESS_FAULT are exposed, which will reduced the change when the guest-page permission is recorded.

Comment on lines -584 to +590
MMU_PAGE_FAULT := tpk.PAGE_FAULT || STORE.mux(!tpk.ALLOW_WRITE, !tpk.ALLOW_READ)
MMU_PAGE_FAULT := tpk.PAGE_FAULT
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only thing I am not sure. Why the !STORE needs to check tpk.ALLOW_READ?
I found there is no case for the non-set LOAD. So I just remove this and let the MMU check by LOAD payload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant