mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 17:30:43 +00:00
CPUID returns a fixed table that never reads the host: a synthetic vendor, and a feature bit only when every instruction of that feature is implemented. Today that is CMOV, POPCNT, LZCNT and long mode. SSE and SSE2 stay unreported while parts of them are rejected. Unlisted leaves return zeros. tests/cpu_features.rs pins every leaf in both engines, requires each reported feature's instruction set among the executed fixtures, and holds a refused witness instruction for each unreported feature, so a bit cannot be set early or forgotten later. Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>