-
Notifications
You must be signed in to change notification settings - Fork 391
Open
Labels
A-shimsArea: This affects the external function shimsArea: This affects the external function shimsC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement
Description
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.
CryZe
Metadata
Metadata
Assignees
Labels
A-shimsArea: This affects the external function shimsArea: This affects the external function shimsC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement