Skip to content

Add ARM target for PDP Cortex-m7 bringup - #167

Open
nnadgaud wants to merge 1 commit into
libqemu/v11.0from
nnadgaud/pdp-arm-target
Open

Add ARM target for PDP Cortex-m7 bringup#167
nnadgaud wants to merge 1 commit into
libqemu/v11.0from
nnadgaud/pdp-arm-target

Conversation

@nnadgaud

Copy link
Copy Markdown

Previously the "arm" entry in LIBQEMU_TARGETS was silently remapped to "aarch64" in CMakeLists.txt, so a 32-bit ARM target could never be built on its own. Remove the remap and:

  • Build libqemu/wrappers/target/arm.c for TARGET_ARM in addition to TARGET_AARCH64.
  • Widen the ARM-specific exports in libqemu/exports.py (cp15_cbar, NVIC link, exclusive-access, post-init, register-reset) from arch='aarch64' to arch='aarch64|arm' so they are also available under TARGET_ARM.

Previously the "arm" entry in LIBQEMU_TARGETS was silently remapped to
"aarch64" in CMakeLists.txt, so a 32-bit ARM target could never be built
on its own. Remove the remap and:

- Build libqemu/wrappers/target/arm.c for TARGET_ARM in addition to TARGET_AARCH64.
- Widen the ARM-specific exports in libqemu/exports.py (cp15_cbar, NVIC
link, exclusive-access, post-init, register-reset) from arch='aarch64'
to arch='aarch64|arm' so they are also available under TARGET_ARM.

Signed-off-by: Nikhita Nadgauda <nnadgaud@qti.qualcomm.com>

@androm3da Brian Cain (androm3da) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QEMU generally refers to the 32-bit target as arm, so removing the remap is a good idea. This change makes sense to me.

But let's hear what Phil and Pierrick think.

@p-b-o

Copy link
Copy Markdown

The change in itself looks fine.

In QEMU, aarch64 target is capable of running anything arm target can. There are even discussions to drop qemu-*-arm completely upstream.
Can you please explain further what are the motivations for us to build a 32-bit ARM target only, and which use case it covers regarding PDP Cortex-m7 bringup?

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.

3 participants