VirtualBox

Changeset 21123 in vbox


Ignore:
Timestamp:
Jul 1, 2009 1:48:28 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49393
Message:

Removed redundant check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r21116 r21123  
    797797                    /* Check to see if we need to emulate the instruction as X86_CR0_WP has been cleared. */
    798798                    if (    CPUMGetGuestCPL(pVCpu, pRegFrame) == 0
    799                         &&  ((CPUMGetGuestCR0(pVCpu) & (X86_CR0_WP | X86_CR0_PG)) == X86_CR0_PG)
    800                         &&  (uErr & (X86_TRAP_PF_RW | X86_TRAP_PF_P)) == (X86_TRAP_PF_RW | X86_TRAP_PF_P))
     799                        &&  ((CPUMGetGuestCR0(pVCpu) & (X86_CR0_WP | X86_CR0_PG)) == X86_CR0_PG))
    801800                    {
     801                        Assert((uErr & (X86_TRAP_PF_RW | X86_TRAP_PF_P)) == (X86_TRAP_PF_RW | X86_TRAP_PF_P));
    802802                        uint64_t fPageGst;
    803803                        rc = PGMGstGetPage(pVCpu, pvFault, &fPageGst, NULL);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette