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

wasm2c: minor code cleanup for OS checks for segue #2504

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

shravanrn
Copy link
Collaborator

@shravanrn shravanrn commented Nov 8, 2024

Define the fsgabase capability lookup to
HWCAP2_FSGSBASE as per
https://www.kernel.org/doc/html/latest/arch/x86/x86_64/fsgs.html#fsgsbase-instructions-enablement

Copy link
Member

@keithw keithw left a comment

Choose a reason for hiding this comment

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

Maybe this can link to https://www.kernel.org/doc/html/latest/arch/x86/x86_64/fsgs.html#fsgsbase-instructions-enablement (even just in the commit message) to show where this is documented?

Fair warning, my view is that we should probably work towards some sort of system of hooks (preprocessor macros that wasm2c can insert with the right command-line argument) that allows seque to live in its own file or directory that you can edit without needing a full review on each change.

@shravanrn shravanrn enabled auto-merge (rebase) November 11, 2024 23:04
@shravanrn shravanrn merged commit 94c25a9 into WebAssembly:main Nov 11, 2024
18 checks passed
@shravanrn shravanrn deleted the segue-minor-cleanup branch November 11, 2024 23:23
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