Changeset 13835 in vbox for trunk/src/recompiler/VBoxRecompiler.c
- Timestamp:
- Nov 5, 2008 2:34:43 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/VBoxRecompiler.c
r13782 r13835 325 325 NULL, remR3Save, NULL, 326 326 NULL, remR3Load, NULL); 327 if ( VBOX_FAILURE(rc))327 if (RT_FAILURE(rc)) 328 328 return rc; 329 329 … … 336 336 { 337 337 int rc = DBGCRegisterCommands(&g_aCmds[0], ELEMENTS(g_aCmds)); 338 if ( VBOX_SUCCESS(rc))338 if (RT_SUCCESS(rc)) 339 339 fRegisteredCmds = true; 340 340 } … … 526 526 uint32_t u32Sep; 527 527 int rc = SSMR3GetU32(pSSM, &u32Sep); /* separator */ 528 if ( VBOX_FAILURE(rc))528 if (RT_FAILURE(rc)) 529 529 return rc; 530 530 if (u32Sep != ~0U) … … 545 545 */ 546 546 rc = SSMR3GetUInt(pSSM, &pRem->cInvalidatedPages); 547 if ( VBOX_FAILURE(rc))547 if (RT_FAILURE(rc)) 548 548 return rc; 549 549 if (pRem->cInvalidatedPages > ELEMENTS(pRem->aGCPtrInvalidatedPages)) … … 558 558 559 559 rc = SSMR3GetUInt(pSSM, &pVM->rem.s.u32PendingInterrupt); 560 if ( VBOX_FAILURE(rc))560 if (RT_FAILURE(rc)) 561 561 return rc; 562 562 563 563 /* check the terminator. */ 564 564 rc = SSMR3GetU32(pSSM, &u32Sep); 565 if ( VBOX_FAILURE(rc))565 if (RT_FAILURE(rc)) 566 566 return rc; 567 567 if (u32Sep != ~0U) … … 752 752 int rc = REMR3State(pVM); 753 753 pVM->rem.s.fFlushTBs = fFlushTBs; 754 if ( VBOX_SUCCESS(rc))754 if (RT_SUCCESS(rc)) 755 755 { 756 756 int interrupt_request = pVM->rem.s.Env.interrupt_request; … … 1349 1349 { 1350 1350 int rc = PATMR3QueryOpcode(env->pVM, GCPtrInstr, pu8Byte); 1351 if ( VBOX_SUCCESS(rc))1351 if (RT_SUCCESS(rc)) 1352 1352 return true; 1353 1353 return false; … … 1390 1390 */ 1391 1391 int rc = PGMInvalidatePage(pVM, GCPtr); 1392 if ( VBOX_FAILURE(rc))1392 if (RT_FAILURE(rc)) 1393 1393 { 1394 1394 AssertMsgFailed(("remR3FlushPage %VGv failed with %d!!\n", GCPtr, rc)); … … 2004 2004 uint8_t u8TrapNo; 2005 2005 int rc = TRPMQueryTrap(pVM, &u8TrapNo, &enmType); 2006 if ( VBOX_SUCCESS(rc))2006 if (RT_SUCCESS(rc)) 2007 2007 { 2008 2008 #ifdef DEBUG … … 2774 2774 const RTGCPHYS GCPhys = physaddr; 2775 2775 rc = PGM3PhysGrowRange(pVM, &GCPhys); 2776 if ( VBOX_SUCCESS(rc))2776 if (RT_SUCCESS(rc)) 2777 2777 return; 2778 2778 … … 3412 3412 rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)remR3DisasEnableStepping, 2, pVM, fEnable); 3413 3413 AssertRC(rc); 3414 if ( VBOX_SUCCESS(rc))3414 if (RT_SUCCESS(rc)) 3415 3415 rc = pReq->iStatus; 3416 3416 VMR3ReqFree(pReq); … … 3435 3435 /* convert the argument and change the mode. */ 3436 3436 rc = pCmdHlp->pfnVarToBool(pCmdHlp, &paArgs[0], &fEnable); 3437 if ( VBOX_FAILURE(rc))3437 if (RT_FAILURE(rc)) 3438 3438 return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "boolean conversion failed!\n"); 3439 3439 rc = REMR3DisasEnableStepping(pVM, fEnable); 3440 if ( VBOX_FAILURE(rc))3440 if (RT_FAILURE(rc)) 3441 3441 return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "REMR3DisasEnableStepping failed!\n"); 3442 3442 return rc; … … 3483 3483 env->cr[4] & (X86_CR4_PSE | X86_CR4_PAE), /** @todo add longmode flag */ 3484 3484 &pvPC); 3485 if ( VBOX_FAILURE(rc))3485 if (RT_FAILURE(rc)) 3486 3486 { 3487 3487 if (!PATMIsPatchGCAddr(env->pVM, GCPtrPC)) … … 3495 3495 /* physical address */ 3496 3496 int rc = PGMPhysGCPhys2HCPtr(env->pVM, (RTGCPHYS)GCPtrPC, nrInstructions * 16, &pvPC); 3497 if ( VBOX_FAILURE(rc))3497 if (RT_FAILURE(rc)) 3498 3498 return false; 3499 3499 } … … 3578 3578 env->cr[4] & (X86_CR4_PSE | X86_CR4_PAE), 3579 3579 &pvPC); 3580 if ( VBOX_FAILURE(rc))3580 if (RT_FAILURE(rc)) 3581 3581 { 3582 3582 if (!PATMIsPatchGCAddr(pVM, GCPtrPC)) … … 3591 3591 /* physical address */ 3592 3592 int rc = PGMPhysGCPhys2HCPtr(pVM, (RTGCPHYS)GCPtrPC, 16, &pvPC); 3593 if ( VBOX_FAILURE(rc))3593 if (RT_FAILURE(rc)) 3594 3594 return false; 3595 3595 } … … 3655 3655 rc = DBGFR3DisasInstrCurrentLogInternal(pVM, pszPrefix); 3656 3656 3657 return VBOX_SUCCESS(rc);3657 return RT_SUCCESS(rc); 3658 3658 #endif 3659 3659 } … … 3738 3738 szBuf, sizeof(szBuf), 3739 3739 &cbInstr); 3740 if ( VBOX_SUCCESS(rc))3740 if (RT_SUCCESS(rc)) 3741 3741 RTLogPrintf("%VGp %s\n", uCode, szBuf); 3742 3742 else … … 3770 3770 PVM pVM = cpu_single_env->pVM; 3771 3771 int rc = DBGFR3SymbolByAddr(pVM, orig_addr, &off, &Sym); 3772 if ( VBOX_SUCCESS(rc))3772 if (RT_SUCCESS(rc)) 3773 3773 { 3774 3774 static char szSym[sizeof(Sym.szName) + 48]; … … 4062 4062 4063 4063 LogFlow(("cpu_get_pic_interrupt: u8Interrupt=%d rc=%Vrc\n", u8Interrupt, rc)); 4064 if ( VBOX_SUCCESS(rc))4064 if (RT_SUCCESS(rc)) 4065 4065 { 4066 4066 if (VM_FF_ISPENDING(env->pVM, VM_FF_INTERRUPT_APIC | VM_FF_INTERRUPT_PIC)) … … 4084 4084 uint64_t u64; 4085 4085 int rc = PDMApicGetBase(env->pVM, &u64); 4086 if ( VBOX_SUCCESS(rc))4086 if (RT_SUCCESS(rc)) 4087 4087 { 4088 4088 LogFlow(("cpu_get_apic_base: returns %#llx \n", u64)); … … 4103 4103 uint8_t u8; 4104 4104 int rc = PDMApicGetTPR(env->pVM, &u8, NULL); 4105 if ( VBOX_SUCCESS(rc))4105 if (RT_SUCCESS(rc)) 4106 4106 { 4107 4107 LogFlow(("cpu_get_apic_tpr: returns %#x\n", u8)); … … 4117 4117 uint64_t value; 4118 4118 int rc = PDMApicReadMSR(env->pVM, 0/* cpu */, reg, &value); 4119 if ( VBOX_SUCCESS(rc))4119 if (RT_SUCCESS(rc)) 4120 4120 { 4121 4121 LogFlow(("cpu_apic_rdms returns %#x\n", value));
Note:
See TracChangeset
for help on using the changeset viewer.