Add MMU to Armv7-A examples#120
Merged
jonathanpallant merged 7 commits intorust-embedded:mainfrom Feb 20, 2026
Merged
Conversation
afbe32b to
2ea8d08
Compare
Contributor
Author
|
rebased on main |
robamu
reviewed
Feb 17, 2026
robamu
reviewed
Feb 17, 2026
thejpster
commented
Feb 17, 2026
Enabling the MMU means the processor can execute unaligned loads. Without an MMU all memory is strongly-ordered, for which unaligned loads are UNDEFINED. Does not apply to non-VMSA targets like Armv7-R.
aab5e6c to
9cfba84
Compare
robamu
reviewed
Feb 19, 2026
robamu
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds MMU support to the versatileab examples run with the
armv7a-none-eabi*andthumbv7a-none-eabi*targets.This means the examples now work when those targets are modified to remove the
+strict-alignfeature. This is because enabling the MMU stops RAM being strongly-ordered, and unaligned-loads on strongly-ordered memory is UNDEFINED by the architecture. So basically, running Armv7-A without the MMU enabled is bad, and now we show how to enable the MMU.Also meant adding support for the DACR and TTBR0 registers.