mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
Sync up the Pentium implementation with the documentation.
Previously, the sense of the E flag was reversed on Pentiums.
This commit is contained in:
parent
38544b49e7
commit
0bb8e015ec
1 changed files with 2 additions and 2 deletions
|
|
@ -227,7 +227,7 @@ writectl5(int pmc)
|
|||
newval |= P5FLAG_USR << 16;
|
||||
if (ctl_shadow[1] & (PMCF_OS << 16))
|
||||
newval |= P5FLAG_OS << 16;
|
||||
if (ctl_shadow[1] & (PMCF_E << 16))
|
||||
if (!(ctl_shadow[1] & (PMCF_E << 16)))
|
||||
newval |= P5FLAG_E << 16;
|
||||
newval |= (ctl_shadow[1] & 0x3f) << 16;
|
||||
}
|
||||
|
|
@ -236,7 +236,7 @@ writectl5(int pmc)
|
|||
newval |= P5FLAG_USR;
|
||||
if (ctl_shadow[0] & (PMCF_OS << 16))
|
||||
newval |= P5FLAG_OS;
|
||||
if (ctl_shadow[0] & (PMCF_E << 16))
|
||||
if (!(ctl_shadow[0] & (PMCF_E << 16)))
|
||||
newval |= P5FLAG_E;
|
||||
newval |= ctl_shadow[0] & 0x3f;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue