VirtualBox

Changeset 19141 in vbox for trunk/src/VBox/VMM/PATM/PATM.cpp


Ignore:
Timestamp:
Apr 23, 2009 1:52:18 PM (16 years ago)
Author:
vboxsync
Message:

Action flags breakup.
Fixed PGM saved state loading of 2.2.2 images.
Reduced hacks in PATM state loading (fixups).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/PATM.cpp

    r18988 r19141  
    112112    Log(("PATMR3Init: Patch record size %d\n", sizeof(PATCHINFO)));
    113113
    114     AssertReleaseMsg(PATMInterruptFlag == (VM_FF_INTERRUPT_APIC | VM_FF_INTERRUPT_PIC | VM_FF_TIMER | VM_FF_REQUEST),
    115                      ("Interrupt flags out of sync!! PATMInterruptFlag=%#x expected %#x. broken assembler?\n", PATMInterruptFlag, VM_FF_INTERRUPT_APIC | VM_FF_INTERRUPT_PIC | VM_FF_TIMER | VM_FF_REQUEST));
     114    /* These values can't change as they are hardcoded in patch code (old saved states!) */
     115    AssertCompile(VM_FF_TIMER   == VMCPU_FF_TIMER);
     116    AssertCompile(VM_FF_REQUEST == VMCPU_FF_REQUEST);
     117    AssertCompile(VMCPU_FF_INTERRUPT_APIC == RT_BIT_32(0));
     118    AssertCompile(VMCPU_FF_INTERRUPT_PIC == RT_BIT_32(1));
     119
     120    AssertReleaseMsg(PATMInterruptFlag == (VMCPU_FF_INTERRUPT_APIC | VMCPU_FF_INTERRUPT_PIC | VMCPU_FF_TIMER | VMCPU_FF_REQUEST),
     121                     ("Interrupt flags out of sync!! PATMInterruptFlag=%#x expected %#x. broken assembler?\n", PATMInterruptFlag, VMCPU_FF_INTERRUPT_APIC | VMCPU_FF_INTERRUPT_PIC | VMCPU_FF_TIMER | VMCPU_FF_REQUEST));
    116122
    117123    /* Allocate patch memory and GC patch state memory. */
     
    62336239        }
    62346240#endif
    6235         EMSetInhibitInterruptsPC(pVM, pVCpu, pNewEip);
     6241        EMSetInhibitInterruptsPC(pVCpu, pNewEip);
    62366242        pVM->patm.s.pGCStateHC->GCPtrInhibitInterrupts = 0;
    62376243    }
Note: See TracChangeset for help on using the changeset viewer.

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