VirtualBox

Changeset 6912 in vbox for trunk


Ignore:
Timestamp:
Feb 11, 2008 10:04:41 PM (17 years ago)
Author:
vboxsync
Message:

Removed the normal (PGMVIRTHANDLERTYPE_NORMAL) kind of virtual access handlers. This type have never been used and is just complicating the code. It can easily be re-added later if found to be useful.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pgm.h

    r6911 r6912  
    178178typedef enum PGMVIRTHANDLERTYPE
    179179{
    180     /** Natural traps only. */
    181     PGMVIRTHANDLERTYPE_NORMAL = 1,
    182180    /** Write access handled. */
    183     PGMVIRTHANDLERTYPE_WRITE,
     181    PGMVIRTHANDLERTYPE_WRITE = 1,
    184182    /** All access handled. */
    185183    PGMVIRTHANDLERTYPE_ALL,
  • trunk/src/VBox/VMM/PGMHandler.cpp

    r6911 r6912  
    282282    switch (enmType)
    283283    {
    284         case PGMVIRTHANDLERTYPE_NORMAL:
    285284        case PGMVIRTHANDLERTYPE_ALL:
    286285        case PGMVIRTHANDLERTYPE_WRITE:
     
    569568    switch (pCur->enmType)
    570569    {
    571         case PGMVIRTHANDLERTYPE_NORMAL: pszType = "Natural"; break;
    572570        case PGMVIRTHANDLERTYPE_WRITE:  pszType = "Write  "; break;
    573571        case PGMVIRTHANDLERTYPE_ALL:    pszType = "All    "; break;
  • trunk/src/VBox/VMM/PGMMap.cpp

    r6911 r6912  
    10901090    switch (pCur->enmType)
    10911091    {
    1092         case PGMVIRTHANDLERTYPE_NORMAL:
    1093             RTLogPrintf("NORMAL   %RGv-%RGv size %RGv %s\n", pCur->GCPtr, pCur->GCPtrLast, pCur->cb, pCur->pszDesc);
    1094             break;
    10951092        case PGMVIRTHANDLERTYPE_WRITE:
    10961093            RTLogPrintf("WRITE    %RGv-%RGv size %RGv %s\n", pCur->GCPtr, pCur->GCPtrLast, pCur->cb, pCur->pszDesc);
  • trunk/src/VBox/VMM/VMMAll/PGMAllGst.h

    r6911 r6912  
    659659    switch (pCur->enmType)
    660660    {
    661         case PGMVIRTHANDLERTYPE_NORMAL:     fFlags = MM_RAM_FLAGS_VIRTUAL_HANDLER; break;
    662661        case PGMVIRTHANDLERTYPE_WRITE:      fFlags = MM_RAM_FLAGS_VIRTUAL_HANDLER | MM_RAM_FLAGS_VIRTUAL_WRITE; break;
    663662        case PGMVIRTHANDLERTYPE_ALL:        fFlags = MM_RAM_FLAGS_VIRTUAL_HANDLER | MM_RAM_FLAGS_VIRTUAL_ALL; break;
  • trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp

    r6911 r6912  
    11031103    switch (pCur->enmType)
    11041104    {
    1105         case PGMVIRTHANDLERTYPE_NORMAL: fFlags = MM_RAM_FLAGS_VIRTUAL_HANDLER; break;
    11061105        case PGMVIRTHANDLERTYPE_WRITE:  fFlags = MM_RAM_FLAGS_VIRTUAL_HANDLER | MM_RAM_FLAGS_VIRTUAL_WRITE; break;
    11071106        case PGMVIRTHANDLERTYPE_ALL:    fFlags = MM_RAM_FLAGS_VIRTUAL_HANDLER | MM_RAM_FLAGS_VIRTUAL_ALL; break;
     
    12311230            switch (pCur->enmType)
    12321231            {
    1233                 case PGMVIRTHANDLERTYPE_NORMAL:     pState->fFlagsFound |= MM_RAM_FLAGS_VIRTUAL_HANDLER; break;
    12341232                case PGMVIRTHANDLERTYPE_WRITE:      pState->fFlagsFound |= MM_RAM_FLAGS_VIRTUAL_HANDLER | MM_RAM_FLAGS_VIRTUAL_WRITE; break;
    12351233                case PGMVIRTHANDLERTYPE_ALL:        pState->fFlagsFound |= MM_RAM_FLAGS_VIRTUAL_HANDLER | MM_RAM_FLAGS_VIRTUAL_ALL; break;
     
    12741272    switch (pVirt->enmType)
    12751273    {
    1276         case PGMVIRTHANDLERTYPE_NORMAL:     fFlags = MM_RAM_FLAGS_VIRTUAL_HANDLER; break;
    12771274        case PGMVIRTHANDLERTYPE_WRITE:      fFlags = MM_RAM_FLAGS_VIRTUAL_HANDLER | MM_RAM_FLAGS_VIRTUAL_WRITE; break;
    12781275        case PGMVIRTHANDLERTYPE_ALL:        fFlags = MM_RAM_FLAGS_VIRTUAL_HANDLER | MM_RAM_FLAGS_VIRTUAL_ALL; break;
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