Skip to content
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

Remove target/riscv/asm.h #1206

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

JanMatCodasip
Copy link
Collaborator

Remove the whole asm.h file and inline the two functions directly into riscv-011.c, which is the only place where they are used.

This is a code cleanup PR without any change of functionality.

Change-Id: Ifa4b2b87ab9f3f50c78a75361003ce478bfd9d5f

Copy link
Collaborator

@en-sc en-sc left a comment

Choose a reason for hiding this comment

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

Thanks for the patch!

The file also needs to be removed from Makefile.am:

@JanMatCodasip JanMatCodasip force-pushed the jm-codasip/remove-asm-h branch from 081238b to c6b9cfa Compare January 20, 2025 08:16
The file asm.h is only used by riscv-011.c.

Remove the whole asm.h file and inline the two functions into
riscv-011.c which is the only place of use.

Change-Id: Ifa4b2b87ab9f3f50c78a75361003ce478bfd9d5f
Signed-off-by: Jan Matyas <[email protected]>
@JanMatCodasip JanMatCodasip force-pushed the jm-codasip/remove-asm-h branch from c6b9cfa to c1dfb0d Compare January 20, 2025 08:16
@JanMatCodasip
Copy link
Collaborator Author

en-sc: The file also needs to be removed from Makefile.am

Addressed. Thanks.

Copy link
Collaborator

@en-sc en-sc left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@en-sc en-sc merged commit e870c5f into riscv-collab:riscv Jan 27, 2025
4 checks passed
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