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

Don't enable optional ARM Cortex-M series CPU features by default #18498

Merged
merged 3 commits into from
Jan 10, 2024

Conversation

castholm
Copy link
Contributor

@castholm castholm commented Jan 9, 2024

Closes #17374

Updates update_cpu_features.zig to support omitting deps and adds overrides for incorrect ARM Cortex-M series CPU definitions, most of them optional features that should not be enabled by default.

Based on the official Arm Cortex-M Processor Comparison Table. Specifically the following highlighted features were incorrect:

image

I then re-ran update_cpu_features.zig using a llvm-tblgen built from llvm/llvm-project@8f4dd44, the exact same revision as the last time CPU features were updated (3ed40b1).

release/17.x branch, commit 8f4dd44097c9ae25dd203d5ac87f3b48f854bba8
(same as the previous run)
@andrewrk
Copy link
Member

Nice work, thank you!

@andrewrk andrewrk merged commit 157cdae into ziglang:master Jan 10, 2024
10 checks passed
@castholm castholm deleted the cpu-cortex-m-optional-deps branch January 10, 2024 16:54
alexrp added a commit to alexrp/zig that referenced this pull request Sep 24, 2024
cortex-m85 already has 8msecext, which is not the same as trustzone. The former
is for the M profile, while the latter is for the A profile.

Revert of a small part of ziglang#18498.
richerfu pushed a commit to richerfu/zig that referenced this pull request Oct 28, 2024
cortex-m85 already has 8msecext, which is not the same as trustzone. The former
is for the M profile, while the latter is for the A profile.

Revert of a small part of ziglang#18498.
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.

ARM Cortex-M series CPU models with optional features default to having those features enabled
2 participants