Skip to content

Added memory clobber to SP ASM#28

Open
Skyblade14 wants to merge 1 commit into
polarfire-soc:mainfrom
Skyblade14:Memory
Open

Added memory clobber to SP ASM#28
Skyblade14 wants to merge 1 commit into
polarfire-soc:mainfrom
Skyblade14:Memory

Conversation

@Skyblade14

@Skyblade14 Skyblade14 commented Nov 11, 2025

Copy link
Copy Markdown

Description

Added memory clobber to inline asm where SP is changed.
The missing clobber leads on GCC14.2 -02-3 and LTO under specific cases to a wrong optimised code if memory clobber is missing.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Startup code starts up.

Test Configuration:

  • Reference design release: 2025.07
  • Hardware: Disco Board
  • HSS version: na
  • Bare metal examples version: 2025.07
  • Buildroot / Yocto release: na

Checklist:

  • I have reviewed my code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have tested that my fix is effective or that my feature works
  • I have added a maintainers file for any new board support

Signed-off-by: Skyblade14 <joh_93@gmx.de>
@Singh-Raghvendra

Copy link
Copy Markdown
Collaborator

Thanks for the PR. We are reviewing it and will get back to you as soon as possible.

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.

2 participants