hujun260 opened a new pull request, #22350:
URL: https://github.com/apache/nuttx/pull/22350

   arch/arm: consolidate arm_perf.c into arm_a_r common directory
   
   ## Summary
   
   Move the common ARM performance-counter implementation from the ARMv7-A
   source directory into `arch/arm/src/arm_a_r`, and use it for ARMv7-A,
   ARMv7-R, and ARMv8-R builds.
   
   The ARMv7-A, ARMv7-R, and ARMv8-R implementations were nearly identical.
   The shared implementation is now built from the common ARM A/R directory,
   while the Make and CMake source lists retain the existing flat, protected,
   and kernel build behavior.
   
   ## Impact
   
   - New feature: **NO**.
   - Existing feature behavior changed: **NO**. The PMU-based performance-event
     interfaces remain unchanged.
   - User adaptation required: **NO**.
   - Build impact: **YES**. The common `arm_perf.c` source is selected from
     `arch/arm/src/arm_a_r` by both Make and CMake builds. Protected and kernel
     builds continue to expose the user-accessible implementation when
     `CONFIG_ARCH_PERF_EVENTS_USER_ACCESS` is enabled.
   - Hardware impact: **NO**. No PMU register access or architecture behavior 
was
     changed.
   - Documentation update required: **NO**.
   - Security impact: **NO**.
   - Compatibility impact: **NO**.
   
   ## Testing
   
   The change is limited to source relocation and build-system source selection.
   No runtime test was performed for this PR description.
   
   Checks performed:
   
   ```text
   $ git diff --check HEAD~1 HEAD
   ```
   
   The command completed without output.
   
   Not tested:
   
   - ARMv7-A, ARMv7-R, or ARMv8-R Make builds.
   - Equivalent CMake builds.
   - Flat, protected, or kernel configurations.
   - SMP and non-SMP configurations.
   - Runtime execution on a simulator or real ARM hardware.
   - `tools/checkpatch.sh`.
   
   ## PR verification Self-Check
   
   - [x] This PR introduces only one functional change.
   - [x] I have updated all required description fields above.
   - [x] My PR adheres to the NuttX contributing guidelines.
   - [ ] My PR is still work in progress (not ready for review).
   - [ ] My PR is ready for review and can be safely merged into a codebase.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [PR] arch/arm: consolidate ar... hujun260 (via GitHub) via commits

Reply via email to