VirtualBox

Changeset 12855 in vbox for trunk/src/VBox/VMM/PATM/VMMGC


Ignore:
Timestamp:
Oct 1, 2008 9:37:46 AM (16 years ago)
Author:
vboxsync
Message:

Mark referenced patches, so they can't be removed.

File:
1 edited

Legend:

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

    r9659 r12855  
    201201                        if (rc == VINF_SUCCESS)
    202202                        {
     203                            Log(("Patch block %VRv called as function\n", pRec->patch.pPrivInstrGC));
     204                            pRec->patch.flags |= PATMFL_CODE_REFERENCED;
     205
    203206                            pRegFrame->eip += PATM_ILLEGAL_INSTR_SIZE;
    204207                            pRegFrame->eax = pRelAddr;
     
    218221                else
    219222                {
    220 #if 0
    221                     if (pRegFrame->edx == 0x806eca98)
    222                     {
    223                         pRegFrame->eip += PATM_ILLEGAL_INSTR_SIZE;
    224                         pRegFrame->eax = 0;     /* make it fault */
    225                         STAM_COUNTER_INC(&pVM->patm.s.StatFunctionNotFound);
    226                         return VINF_SUCCESS;
    227                     }
    228 #endif
    229223                    STAM_COUNTER_INC(&pVM->patm.s.StatFunctionNotFound);
    230224                    return VINF_PATM_DUPLICATE_FUNCTION;
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