-
Notifications
You must be signed in to change notification settings - Fork 3k
TOOLS : Add missing M33 and M33F in python scripts #8449
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not super familiar with these cores yet, but the changes look ok to me.
tools/toolchains/arm.py
Outdated
@@ -413,6 +413,8 @@ def __init__(self, target, *args, **kwargs): | |||
self.flags['common'].append("-mfloat-abi=softfp") | |||
elif target.core.startswith("Cortex-M23"): | |||
self.flags['common'].append("-march=armv8-m.base") | |||
elif target.core.startswith("Cortex-M33"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cortex-M33 CPU specific flags are covered here.. https://github.com/ARMmbed/mbed-os/pull/8449/files#diff-9cf75aea879b6b9cc5026af0b8f708a3R396
No need of arch
flag for M33 as we give add cpu
flag, we should be just adding floating point here for F
option.
Just FYI- Special case of non-floating point related is covered here for Cortex-M23 since we do not specify CPU but arch only. Can still be moved here https://github.com/ARMmbed/mbed-os/pull/8449/files#diff-9cf75aea879b6b9cc5026af0b8f708a3R403.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-mcpu=cortex-m33+nodsp and -mfpu=none
Is already set, so addition of -march
is not needed here. Code should be updated to:
elif target.core.startswith("Cortex-M33F"):
self.flags['common'].append("-mfpu=fpv5-sp-d16")
self.flags['common'].append("-mfloat-abi=softfp")
@jeromecoutant Can you please review the latest @deepikabhavnani review? |
Mmm, not easy for me... I am not a M33 expert... |
@theotherjimmy Mind reviewing? |
Hi @deepikabhavnani |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeromecoutant - Changes look good, just small nit for code duplication
I squashed all your suggestion |
Note: This PR is now a part of a rollup PR (#8663). No further work is needed here, as once that PR is merged, this PR will also be closed and marked as merged. If any more commits are made in this PR, this PR will remain open and have to go through CI on its own. |
Description
Tried to complete CORTEX_M33 coverage in python scripts.
Pull request type