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 Cortex-M7 r0p1 CPUs #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jeandudey
Copy link

Almost no changes to the code, only the specific bits for Cortex-M7. Also, should the register definition for SCB.CCR.STKALIGN be changed? On Cortex-M7 it's read-only unlike for other Cortex-M processors, I tried feature gating only the field but it didn't work, so I had to do the entire register block, so I only removed the line of code that sets that specific bit (for Cortex-M7 is already set).

Cortex-M7 CPUs have that bit set by default and cannot be written.

Signed-off-by: Jean Pierre Dudey <[email protected]>
@jeandudey
Copy link
Author

Added 4edadba as the demonstrator for drone-os/drone-core#16

The STREX instruction doesn't permits the Rd register to be the
same as Rt and Rn, this applies to Cortex-M7 as well to
Cortex-M4, and probably others too.

Signed-off-by: Jean Pierre Dudey <[email protected]>
Signed-off-by: Jean Pierre Dudey <[email protected]>
These fields are available only for Cortex-M targets with an instruction
and data cache. As of now only Cortex-M7 and Cortex-M35P have options
for these caches.

Signed-off-by: Jean Pierre Dudey <[email protected]>
@jeandudey jeandudey force-pushed the 2021_07_16-m7-support branch 2 times, most recently from ef88196 to 8ccf71e Compare July 22, 2021 08:57
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