-
Notifications
You must be signed in to change notification settings - Fork 7.3k
arch: arm: aarch32: Allow selecting compiler instruction set #22741
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
arch: arm: aarch32: Allow selecting compiler instruction set #22741
Conversation
All checks are passing now. Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
It must be very nice having an assembler that supports do-while, I mean really. |
363d2f0
to
a7e5fc4
Compare
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.
Minor changes requested.
a7e5fc4
to
c34f78b
Compare
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.
Great work.
This commit whitespace-aligns the toolchain flags. Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit introduces the `COMPILER_ISA_THUMB2` symbol to allow choosing either the ARM or Thumb instruction set for C code compilation. In addition, this commit introduces the `ASSEMBLER_ISA_THUMB2` helper symbol to specify the default target instruction set for the assembler. Signed-off-by: Stephanos Ioannidis <[email protected]>
The ARMv7-R architecture supports both Thumb-2 (T32) and ARM (A32) instruction sets. This commit selects the `ISA_THUMB2` symbol to indicate that the ARMv7-R architecture supports the Thumb-2 instruction set, which can be enabled by selecting the `COMPILER_ISA_THUMB2` symbol. Signed-off-by: Stephanos Ioannidis <[email protected]>
c34f78b
to
af20257
Compare
This commit makes the following changes to allow choosing either ARM
or Thumb instruction set for C code compilation.
Introduce
COMPILER_ISA_THUMB2
symbol to make C code compilationusing the Thumb instruction set configurable.
When
ISA_ARM
andISA_THUMB2
symbols are selected simultaneously(i.e. on Cortex-A and Cortex-R processors), make all ASM functions
use the ARM instruction set by default.
Signed-off-by: Stephanos Ioannidis [email protected]