VirtualBox

Changeset 2507

Show
Ignore:
Timestamp:
05/04/07 20:23:45 (2 years ago)
Author:
vboxsync
Message:

Drop the VINF_IOM_HC_IOPORT_READWRITE status code as it isn't really used. Made VINF_EM_LAST inclusive as per last/end convention used elsewhere in the VM.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/VBox/err.h

    r2498 r2507  
    136136 * interrupts having changed the EIP. */ 
    137137#define VINF_EM_RESCHEDULE                  1117 
    138 /** Last scheduling related status code. (exclusive) */ 
     138/** Last scheduling related status code. (inclusive) */ 
    139139#define VINF_EM_LAST                        1118 
    140140 
     
    712712/** Reason for leaving GC: I/O port write. */ 
    713713#define VINF_IOM_HC_IOPORT_WRITE            2621 
    714 /** Reason for leaving GC: I/O read/write. 
    715  * @deprecated Don't use this! */ 
    716 #define VINF_IOM_HC_IOPORT_READWRITE        2622 
    717714/** Reason for leaving GC: MMIO write. */ 
    718715#define VINF_IOM_HC_MMIO_READ               2623 
  • trunk/src/VBox/VMM/DBGF.cpp

    r2261 r2507  
    610610                rc = VMR3ReqProcess(pVM); 
    611611                LogFlow(("dbgfr3VMMWait: VMR3ReqProcess -> %Vrc rcRet=%Vrc\n", rc, rcRet)); 
    612                 if (rc >= VINF_EM_FIRST && rc < VINF_EM_LAST) 
     612                if (rc >= VINF_EM_FIRST && rc <= VINF_EM_LAST) 
    613613                { 
    614614                    switch (rc) 
     
    662662                rcRet = rc; 
    663663            else if (    rc >= VINF_EM_FIRST 
    664                      &&  rc < VINF_EM_LAST 
     664                     &&  rc <= VINF_EM_LAST 
    665665                     &&  (rc < rcRet || rcRet == VINF_SUCCESS)) 
    666666                rcRet = rc; 
  • trunk/src/VBox/VMM/VMM.cpp

    r2291 r2507  
    496496                    STAM_REG(pVM, &pVM->vmm.s.StatGCRetIORead,              STAMTYPE_COUNTER, "/VMM/GCRet/IORead",              STAMUNIT_OCCURENCES, "Number of VINF_IOM_HC_IOPORT_READ returns."); 
    497497                    STAM_REG(pVM, &pVM->vmm.s.StatGCRetIOWrite,             STAMTYPE_COUNTER, "/VMM/GCRet/IOWrite",             STAMUNIT_OCCURENCES, "Number of VINF_IOM_HC_IOPORT_WRITE returns."); 
    498                     STAM_REG(pVM, &pVM->vmm.s.StatGCRetIOReadWrite,         STAMTYPE_COUNTER, "/VMM/GCRet/IOReadWrite",         STAMUNIT_OCCURENCES, "Number of VINF_IOM_HC_IOPORT_READWRITE returns."); 
    499498                    STAM_REG(pVM, &pVM->vmm.s.StatGCRetMMIORead,            STAMTYPE_COUNTER, "/VMM/GCRet/MMIORead",            STAMUNIT_OCCURENCES, "Number of VINF_IOM_HC_MMIO_READ returns."); 
    500499                    STAM_REG(pVM, &pVM->vmm.s.StatGCRetMMIOWrite,           STAMTYPE_COUNTER, "/VMM/GCRet/MMIOWrite",           STAMUNIT_OCCURENCES, "Number of VINF_IOM_HC_MMIO_WRITE returns."); 
  • trunk/src/VBox/VMM/VMMGC/TRPMGCHandlers.cpp

    r2124 r2507  
    835835            /* no break; */ 
    836836        case VINF_PGM_SYNC_CR3: /** @todo Check this with Sander. */ 
    837         case VINF_IOM_HC_IOPORT_READWRITE: 
    838837        case VINF_IOM_HC_IOPORT_READ: 
    839838        case VINF_IOM_HC_IOPORT_WRITE: 
  • trunk/src/VBox/VMM/VMMInternal.h

    r2283 r2507  
    270270    STAMCOUNTER                 StatGCRetIORead; 
    271271    STAMCOUNTER                 StatGCRetIOWrite; 
    272     STAMCOUNTER                 StatGCRetIOReadWrite; 
    273272    STAMCOUNTER                 StatGCRetMMIORead; 
    274273    STAMCOUNTER                 StatGCRetMMIOWrite; 
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r2228 r2507  
    279279        case VINF_IOM_HC_IOPORT_WRITE: 
    280280            STAM_COUNTER_INC(&pVM->vmm.s.StatGCRetIOWrite); 
    281             break; 
    282         case VINF_IOM_HC_IOPORT_READWRITE: 
    283             STAM_COUNTER_INC(&pVM->vmm.s.StatGCRetIOReadWrite); 
    284281            break; 
    285282        case VINF_IOM_HC_MMIO_READ: 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy