rust-lang / stdarch

Rust's standard library vendor-specific APIs and run-time feature detection
https://doc.rust-lang.org/stable/core/arch/
Apache License 2.0
612 stars 272 forks source link

Ignore `XSTATE_BV` when comparing `XTEST` XsaveArea #1641

Closed marxin closed 2 months ago

marxin commented 2 months ago

Ignore XSTATE_BV (state-component bitmap) that occupies the first byte of the XSAVE Header (at offset 512 bytes from the start). The value may change, for more information see the following chapter: 13.7 OPERATION OF XSAVE - Intel® 64 and IA-32 Architectures Software Developer’s Manual.

Tested on AMD Ryzen 9 7900X 12-Core Processor.

rustbot commented 2 months ago

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Amanieu (or someone else) some time within the next two weeks.