VirtualBox

Changeset 12773 in vbox


Ignore:
Timestamp:
Sep 26, 2008 4:32:43 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37113
Message:

EMInterpretLMSW: LMSW cannot change AM or WP, so no need to check these. Kudos to nike for finding this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r12760 r12773  
    19211921    uint64_t NewCr0 = ( OldCr0 & ~(             X86_CR0_MP | X86_CR0_EM | X86_CR0_TS))
    19221922                    | (u16Data &  (X86_CR0_PE | X86_CR0_MP | X86_CR0_EM | X86_CR0_TS));
    1923 
    1924 #ifdef IN_GC
    1925     /* Need to change the hyper CR0? Doing it the lazy way then. */
    1926     if (    (OldCr0 & (X86_CR0_AM | X86_CR0_WP))
    1927         !=  (NewCr0 & (X86_CR0_AM | X86_CR0_WP)))
    1928     {
    1929         Log(("EMInterpretLMSW: CR0: %#x->%#x => R3\n", OldCr0, NewCr0));
    1930         VM_FF_SET(pVM, VM_FF_TO_R3);
    1931     }
    1932 #endif
    19331923
    19341924    return CPUMSetGuestCR0(pVM, NewCr0);
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