VirtualBox

Changeset 22493 in vbox for trunk/src/VBox/VMM/VMMGC


Ignore:
Timestamp:
Aug 26, 2009 10:22:16 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51513
Message:

VMM,DevPCI,VBox/types.h: Added a VBOXSTRICTRC type for indicating strict VBox stuatus codes. Some expirmentation with making it a class in strict builds to get some help from the compiler with making sure the return code is treated correctly.

Location:
trunk/src/VBox/VMM/VMMGC
Files:
2 edited

Legend:

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

    r12989 r22493  
    6868 * @param   pCpu        Disassembler CPU state.
    6969 */
    70 VMMRCDECL(int) IOMGCIOPortHandler(PVM pVM, PCPUMCTXCORE pRegFrame, PDISCPUSTATE pCpu)
     70VMMRCDECL(VBOXSTRICTRC) IOMGCIOPortHandler(PVM pVM, PCPUMCTXCORE pRegFrame, PDISCPUSTATE pCpu)
    7171{
    7272    switch (pCpu->pCurInstr->opcode)
  • trunk/src/VBox/VMM/VMMGC/TRPMGCHandlers.cpp

    r20374 r22493  
    878878        &&  (Cpu.pCurInstr->optype & OPTYPE_PORTIO))
    879879    {
    880         rc = EMInterpretPortIO(pVM, pVCpu, pRegFrame, &Cpu, cbOp);
     880        VBOXSTRICTRC rcStrict = EMInterpretPortIO(pVM, pVCpu, pRegFrame, &Cpu, cbOp);
     881        rc = VBOXSTRICTRC_TODO(rcStrict);
    881882        return trpmGCExitTrap(pVM, pVCpu, rc, pRegFrame);
    882883    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette