VirtualBox

Changeset 93945 in vbox for trunk/src/bldprogs/scmrw.cpp


Ignore:
Timestamp:
Feb 24, 2022 9:16:02 PM (3 years ago)
Author:
vboxsync
Message:

scm: Maded the --only-guest-host-page option include PAGE_ADDRESS and PHYS_PAGE_ADDRESS too. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/scmrw.cpp

    r93933 r93945  
    32763276        { RT_STR_TUPLE("PAGE_BASE_GC_MASK") },
    32773277        { RT_STR_TUPLE("PAGE_BASE_HC_MASK") },
     3278        { RT_STR_TUPLE("PAGE_ADDRESS") },
     3279        { RT_STR_TUPLE("PHYS_PAGE_ADDRESS") },
    32783280        { RT_STR_TUPLE("ASMMemIsZeroPage") },
    32793281        { RT_STR_TUPLE("ASMMemZeroPage") },
    32803282    };
    3281     size_t const iFirstWord = pSettings->fOnlyGuestHostPage ? 0 : 5;
    3282     size_t const iEndWords  = pSettings->fNoASMMemPageUse   ? 7 : 5;
     3283    size_t const iFirstWord = pSettings->fOnlyGuestHostPage ? 0 : 7;
     3284    size_t const iEndWords  = pSettings->fNoASMMemPageUse   ? 9 : 7;
    32833285
    32843286    uint32_t    iLine = 0;
     
    33063308                            || !ScmIsCIdentifierChar(pchHit[cchWord])) )
    33073309                    {
    3308                         if (i < 5)
     3310                        if (i < 3)
    33093311                            ScmFixManually(pState, "%u:%zu: %s is not allow! Use GUEST_%s or HOST_%s instead.\n",
    33103312                                           iLine, pchHit - pchLine + 1, pszWord, pszWord, pszWord);
     3313                        else if (i < 7)
     3314                            ScmFixManually(pState, "%u:%zu: %s is not allow! Rewrite using GUEST/HOST_PAGE_OFFSET_MASK.\n",
     3315                                           iLine, pchHit - pchLine + 1, pszWord);
    33113316                        else
    33123317                            ScmFixManually(pState, "%u:%zu: %s is not allow! Use %s with correct page size instead.\n",
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