This repository was archived by the owner on Mar 24, 2022. It is now read-only.
Commit 25eff66
authored
Check extended CPU features only when necessary (#426)
When checking for CPU features, we support some features under `get_extended_feature_info`, CPUID leaf `eax=7`. Unlike the other leaves we check (`eax=1` and `eax=80000001`), this leaf is not ubiquitous and a rough estimate from feature flags (specifically, `smep`, which Intel added in Ivy Bridge) suggests this leaf may not exist on processors from before 2012. Only check this leaf if the module we would load requires features reported by it, for compatibility with such processors.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1615786, wherein the machine's processor is an AMD Phenom II, a series that shipped in 2010.1 parent ec8d6ff commit 25eff66
1 file changed
Lines changed: 17 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | | - | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | | - | |
68 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
0 commit comments