Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for address translation of the PC prior to ifetch #562

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

relokin
Copy link
Member

@relokin relokin commented Apr 18, 2023

This PR changes the type of Label and makes one of the two types of Symbolic Virtual Constants. This way a Label can be translated and mapped to a Symbolic Physical Constant. Leveraging this, herd7 when self and vmsa are both enabled, for instructions with labels, it introduces a Implicit Read event to Symbolic Virtual Label as well as a branching decision. Much like for data translation for instruction fetches can raise faults.

@relokin
Copy link
Member Author

relokin commented Apr 18, 2023

There are a few things that are work in progress:

  • Support in litmus (requires support for self in kvm mode first)
  • herd7 should translate all instructions with labels, regardless of whether there is a register initialized to that label or not
  • Do we need a new mode vmsa-instr? If yes, we could rename vmsa to vmsa-data make vmsa a variant that enables both. Or otherwise we keep vmsa as is and when we use both vmsa and self we enable this functionality.

Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
@jalglave
Copy link
Member

hi @relokin is there any reason to keep this as a draft? How can we help progress on this?
Thanks in advance,
Jade

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.

3 participants