Skip to content

cpufeatures: Disable all target features under miri #779

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

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

jrose-signal
Copy link
Contributor

@jrose-signal jrose-signal commented Jul 6, 2022

miri is an interpreter and doesn't support inline assembly. Fortunately, we already have precedent for an x86 target without cpuid: SGX. Treat miri like SGX: only features that are enabled at compile time are available at run time.

miri is an interpreter, and though it tries to emulate the target CPU it does not support any target features.

Fixes #778.

Miri is an interpreter, and though it tries to emulate the target CPU
it does not support any target features.
@jrose-signal jrose-signal changed the title cpufeatures: cpuid isn't supported under miri cpufeatures: Disable all target features under miri Jul 8, 2022
@tarcieri
Copy link
Member

tarcieri commented Aug 8, 2022

Looks good now, thanks!

@tarcieri tarcieri merged commit 8e74aa5 into RustCrypto:master Aug 8, 2022
@jrose-signal jrose-signal deleted the cpufeatures-miri branch August 8, 2022 16:45
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.

cpufeatures: requesting (minimal) miri support
2 participants