VirtualBox

Changeset 93945 in vbox for trunk


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

Location:
trunk/src/bldprogs
Files:
2 edited

Legend:

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

    r93931 r93945  
    29202920                RTPrintf("      No PAGE_SIZE, PAGE_SHIFT or PAGE_OFFSET_MASK allowed, must have\n"
    29212921                         "      GUEST_ or HOST_ prefix.  Also forbids use of PAGE_BASE_MASK,\n"
    2922                          "      PAGE_BASE_HC_MASK and PAGE_BASE_GC_MASK  Default: %RTbool\n", g_Defaults.fOnlyGuestHostPage);
     2922                         "      PAGE_BASE_HC_MASK, PAGE_BASE_GC_MASK, PAGE_ADDRESS,\n"
     2923                         "      PHYS_PAGE_ADDRESS.  Default: %RTbool\n", g_Defaults.fOnlyGuestHostPage);
    29232924                break;
    29242925            case SCMOPT_NO_ASM_MEM_PAGE_USE:
     
    29642965            case SCMOPT_ADD_ACTION:
    29652966                RTPrintf("      Adds a rewriter action.  The first use after a --treat-as will copy and\n"
    2966                          "      the action list selected by the --treat-as.  The actuion list will be\n"
     2967                         "      the action list selected by the --treat-as.  The action list will be\n"
    29672968                         "      flushed by --treat-as.\n");
    29682969                break;
  • 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