Skip to content

Support is_x86_feature_detected!() #932

Open
@abonander

Description

@abonander

Miri for me is choking on usages of is_x86_feature_detected!() (specifically the inline assembly it uses to invoke cpuid) in two different crates:

These crates of course can be patched to use #[cfg(miri)] but it seems to me like Miri could also just override the internals of is_x86_feature_detected!() to return false for all features it doesn't support, so these crates automatically fall back to implementations that Miri may already be able to evaluate. memchr may need further patching to work correctly in Miri but I think this would be worth the effort anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-shimsArea: This affects the external function shimsC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions