- Timestamp:
- Apr 19, 2007 1:17:16 PM (18 years ago)
- Location:
- trunk/src/recompiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/VBoxRecompiler.c
r2198 r2223 1579 1579 STAM_PROFILE_START(&pVM->rem.s.StatsState, a); 1580 1580 register const CPUMCTX *pCtx = pVM->rem.s.pCtx; 1581 register unsigned fFlags; 1581 register unsigned fFlags; 1582 bool fHiddenSelRegsValid = CPUMAreHiddenSelRegsValid(pVM); 1582 1583 1583 1584 /* … … 1696 1697 if (fFlags & CPUM_CHANGED_LDTR) 1697 1698 { 1698 if (f Flags & CPUM_CHANGED_HIDDEN_SEL_REGS)1699 if (fHiddenSelRegsValid) 1699 1700 { 1700 1701 pVM->rem.s.Env.ldt.selector = pCtx->ldtr; … … 1709 1710 if (fFlags & CPUM_CHANGED_TR) 1710 1711 { 1711 if (f Flags & CPUM_CHANGED_HIDDEN_SEL_REGS)1712 if (fHiddenSelRegsValid) 1712 1713 { 1713 1714 pVM->rem.s.Env.tr.selector = pCtx->tr; … … 1735 1736 */ 1736 1737 1737 if (f Flags & CPUM_CHANGED_HIDDEN_SEL_REGS)1738 if (fHiddenSelRegsValid) 1738 1739 { 1739 1740 /* The hidden selector registers are valid in the CPU context. */ -
trunk/src/recompiler/new/VBoxRecompiler.c
r2198 r2223 1654 1654 STAM_PROFILE_START(&pVM->rem.s.StatsState, a); 1655 1655 register const CPUMCTX *pCtx = pVM->rem.s.pCtx; 1656 register unsigned fFlags; 1656 register unsigned fFlags; 1657 bool fHiddenSelRegsValid = CPUMAreHiddenSelRegsValid(pVM); 1657 1658 1658 1659 Assert(!pVM->rem.s.fInREM); … … 1780 1781 if (fFlags & CPUM_CHANGED_LDTR) 1781 1782 { 1782 if (f Flags & CPUM_CHANGED_HIDDEN_SEL_REGS)1783 if (fHiddenSelRegsValid) 1783 1784 { 1784 1785 pVM->rem.s.Env.ldt.selector = pCtx->ldtr; … … 1793 1794 if (fFlags & CPUM_CHANGED_TR) 1794 1795 { 1795 if (f Flags & CPUM_CHANGED_HIDDEN_SEL_REGS)1796 if (fHiddenSelRegsValid) 1796 1797 { 1797 1798 pVM->rem.s.Env.tr.selector = pCtx->tr; … … 1819 1820 */ 1820 1821 1821 if (f Flags & CPUM_CHANGED_HIDDEN_SEL_REGS)1822 if (fHiddenSelRegsValid) 1822 1823 { 1823 1824 /* The hidden selector registers are valid in the CPU context. */
Note:
See TracChangeset
for help on using the changeset viewer.