Sync up the Pentium implementation with the documentation.

Previously, the sense of the E flag was reversed on
Pentiums.
This commit is contained in:
Garrett Wollman 1996-03-28 21:00:29 +00:00
parent 38544b49e7
commit 0bb8e015ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14893

View file

@ -227,7 +227,7 @@ writectl5(int pmc)
newval |= P5FLAG_USR << 16; newval |= P5FLAG_USR << 16;
if (ctl_shadow[1] & (PMCF_OS << 16)) if (ctl_shadow[1] & (PMCF_OS << 16))
newval |= P5FLAG_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 |= P5FLAG_E << 16;
newval |= (ctl_shadow[1] & 0x3f) << 16; newval |= (ctl_shadow[1] & 0x3f) << 16;
} }
@ -236,7 +236,7 @@ writectl5(int pmc)
newval |= P5FLAG_USR; newval |= P5FLAG_USR;
if (ctl_shadow[0] & (PMCF_OS << 16)) if (ctl_shadow[0] & (PMCF_OS << 16))
newval |= P5FLAG_OS; newval |= P5FLAG_OS;
if (ctl_shadow[0] & (PMCF_E << 16)) if (!(ctl_shadow[0] & (PMCF_E << 16)))
newval |= P5FLAG_E; newval |= P5FLAG_E;
newval |= ctl_shadow[0] & 0x3f; newval |= ctl_shadow[0] & 0x3f;
} }