- Timestamp:
- Jul 28, 2016 5:12:17 PM (8 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAll.cpp
r62603 r62637 7782 7782 #ifdef IN_RING3 7783 7783 Assert(!fPostponeFail); 7784 RT_NOREF_PV(fPostponeFail); 7784 7785 #endif 7785 7786 … … 11409 11410 else \ 11410 11411 { \ 11411 DBGFSTOP(pVCpu->CTX_SUFF(pVM)); \11412 (void)DBGFSTOP(pVCpu->CTX_SUFF(pVM)); \ 11412 11413 return IEMOP_RAISE_INVALID_OPCODE(); \ 11413 11414 } \ -
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r62478 r62637 2334 2334 * 2335 2335 */ 2336 VMMR3DECL(int) CPUMR3DisasmInstrCPU(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, RTGCPTR GCPtrPC, PDISCPUSTATE pCpu, const char *pszPrefix) 2336 VMMR3DECL(int) CPUMR3DisasmInstrCPU(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, RTGCPTR GCPtrPC, PDISCPUSTATE pCpu, 2337 const char *pszPrefix) 2337 2338 { 2338 2339 CPUMDISASSTATE State; … … 2387 2388 uint32_t cbInstr; 2388 2389 #ifndef LOG_ENABLED 2390 RT_NOREF_PV(pszPrefix); 2389 2391 rc = DISInstrWithReader(GCPtrPC, enmDisCpuMode, cpumR3DisasInstrRead, &State, pCpu, &cbInstr); 2390 2392 if (RT_SUCCESS(rc)) … … 2487 2489 Assert(!pVCpu->cpum.s.fRawEntered); 2488 2490 Assert(pVCpu->cpum.s.fRemEntered); 2491 2492 RT_NOREF_PV(fNoOutOfSyncSels); 2489 2493 2490 2494 pVCpu->cpum.s.fRemEntered = false; -
trunk/src/VBox/VMM/VMMR3/CPUMDbg.cpp
r62478 r62637 310 310 static DECLCALLBACK(int) cpumR3RegGet_Dummy(void *pvUser, PCDBGFREGDESC pDesc, PDBGFREGVAL pValue) 311 311 { 312 RT_NOREF_PV(pvUser); 312 313 switch (pDesc->enmType) 313 314 { -
trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
r62591 r62637 2019 2019 } 2020 2020 2021 /**2022 * Init a set of host CPUID leaves.2023 *2024 * @returns VBox status code.2025 * @param paLeaves The leaf array.2026 * @param cLeaves The number of leaves.2027 * @param uStart The start leaf number.2028 * @param pCfgNode The /CPUM/HostCPUID/ node.2029 */2030 static int cpumR3CpuIdInitHostSet(uint32_t uStart, PCPUMCPUID paLeaves, uint32_t cLeaves, PCFGMNODE pCfgNode)2031 {2032 /* Using the ECX variant for all of them can't hurt... */2033 for (uint32_t i = 0; i < cLeaves; i++)2034 ASMCpuIdExSlow(uStart + i, 0, 0, 0, &paLeaves[i].uEax, &paLeaves[i].uEbx, &paLeaves[i].uEcx, &paLeaves[i].uEdx);2035 2036 /* Load CPUID leaf override; we currently don't care if the user2037 specifies features the host CPU doesn't support. */2038 return cpumR3CpuIdInitLoadOverrideSet(uStart, paLeaves, cLeaves, pCfgNode);2039 }2040 2041 2021 2042 2022 /** … … 5995 5975 * 5996 5976 * @param pHlp The info helper functions. 5997 * @param paLeaves The CPUID leaves array.5998 * @param cLeaves The number of leaves in the array.5999 5977 * @param pCurLeaf The 0x00000001 leaf. 6000 5978 * @param fVerbose Whether to be very verbose or not. 6001 5979 * @param fIntel Set if intel CPU. 6002 5980 */ 6003 static void cpumR3CpuIdInfoStdLeaf1Details(PCDBGFINFOHLP pHlp, PCCPUMCPUIDLEAF paLeaves, uint32_t cLeaves, 6004 PCCPUMCPUIDLEAF pCurLeaf, bool fVerbose, bool fIntel) 5981 static void cpumR3CpuIdInfoStdLeaf1Details(PCDBGFINFOHLP pHlp, PCCPUMCPUIDLEAF pCurLeaf, bool fVerbose, bool fIntel) 6005 5982 { 6006 5983 Assert(pCurLeaf); Assert(pCurLeaf->uLeaf == 1); … … 6112 6089 PCCPUMCPUIDLEAF pCurLeaf, bool fVerbose) 6113 6090 { 6091 RT_NOREF_PV(fVerbose); 6114 6092 Assert(pCurLeaf); Assert(pCurLeaf->uLeaf == 13); 6115 6093 pHlp->pfnPrintf(pHlp, "Processor Extended State Enumeration (leaf 0xd):\n"); … … 6320 6298 6321 6299 if (iVerbosity && (pCurLeaf = cpumR3CpuIdGetLeaf(paLeaves, cLeaves, UINT32_C(0x00000001), 0)) != NULL) 6322 cpumR3CpuIdInfoStdLeaf1Details(pHlp, p aLeaves, cLeaves, pCurLeaf, iVerbosity > 1, fIntel);6300 cpumR3CpuIdInfoStdLeaf1Details(pHlp, pCurLeaf, iVerbosity > 1, fIntel); 6323 6301 6324 6302 if (iVerbosity && (pCurLeaf = cpumR3CpuIdGetLeaf(paLeaves, cLeaves, UINT32_C(0x00000007), 0)) != NULL) … … 6729 6707 VMMR3_INT_DECL(uint32_t) CPUMR3GetGuestCpuIdPatmStdMax(PVM pVM) 6730 6708 { 6709 RT_NOREF_PV(pVM); 6731 6710 return RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdPatmStd); 6732 6711 } … … 6742 6721 VMMR3_INT_DECL(uint32_t) CPUMR3GetGuestCpuIdPatmExtMax(PVM pVM) 6743 6722 { 6723 RT_NOREF_PV(pVM); 6744 6724 return RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdPatmExt); 6745 6725 } … … 6755 6735 VMMR3_INT_DECL(uint32_t) CPUMR3GetGuestCpuIdPatmCentaurMax(PVM pVM) 6756 6736 { 6737 RT_NOREF_PV(pVM); 6757 6738 return RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdPatmCentaur); 6758 6739 } -
trunk/src/VBox/VMM/VMMR3/DBGFAddrSpace.cpp
r62478 r62637 92 92 } DBGFR3ASLOADOPENDATA; 93 93 94 #if 0 /* unused */ 94 95 /** 95 96 * Callback for dbgfR3AsSearchPath and dbgfR3AsSearchEnvPath. … … 102 103 /** Pointer to a FNDBGFR3ASSEARCHOPEN. */ 103 104 typedef FNDBGFR3ASSEARCHOPEN *PFNDBGFR3ASSEARCHOPEN; 105 #endif 104 106 105 107 … … 792 794 } 793 795 796 #if 0 /* unused */ 794 797 795 798 /** … … 931 934 } 932 935 936 #endif /* unused */ 937 933 938 934 939 /** … … 1144 1149 1145 1150 1146 /** Temporary symbol conversion function. */1147 static void dbgfR3AsSymbolConvert(PRTDBGSYMBOL pSymbol, PCDBGFSYMBOL pDbgfSym)1148 {1149 pSymbol->offSeg = pSymbol->Value = pDbgfSym->Value;1150 pSymbol->cb = pDbgfSym->cb;1151 pSymbol->iSeg = 0;1152 pSymbol->fFlags = 0;1153 pSymbol->iOrdinal = UINT32_MAX;1154 strcpy(pSymbol->szName, pDbgfSym->szName);1155 }1156 1157 1158 1151 /** 1159 1152 * Query a symbol by address. -
trunk/src/VBox/VMM/VMMR3/DBGFBp.cpp
r62478 r62637 343 343 AssertMsgReturn(!piBp || VALID_PTR(piBp), ("piBp=%p\n", piBp), VERR_INVALID_POINTER); 344 344 if (piBp) 345 *piBp = ~0;345 *piBp = UINT32_MAX; 346 346 347 347 /* … … 505 505 AssertMsgReturn(!piBp || VALID_PTR(piBp), ("piBp=%p\n", piBp), VERR_INVALID_POINTER); 506 506 if (piBp) 507 *piBp = ~0;507 *piBp = UINT32_MAX; 508 508 switch (fType) 509 509 { … … 653 653 static int dbgfR3BpRegArm(PVM pVM, PDBGFBP pBp) 654 654 { 655 RT_NOREF_PV(pBp); 655 656 Assert(pBp->fEnabled); 656 657 return VMMR3EmtRendezvous(pVM, VMMEMTRENDEZVOUS_FLAGS_TYPE_ALL_AT_ONCE, dbgfR3BpRegRecalcOnCpu, NULL); … … 670 671 static int dbgfR3BpRegDisarm(PVM pVM, PDBGFBP pBp) 671 672 { 673 RT_NOREF_PV(pBp); 672 674 Assert(!pBp->fEnabled); 673 675 return VMMR3EmtRendezvous(pVM, VMMEMTRENDEZVOUS_FLAGS_TYPE_ALL_AT_ONCE, dbgfR3BpRegRecalcOnCpu, NULL); … … 703 705 AssertMsgReturn(!piBp || VALID_PTR(piBp), ("piBp=%p\n", piBp), VERR_INVALID_POINTER); 704 706 if (piBp) 705 *piBp = ~0; 706 707 *piBp = UINT32_MAX; 707 708 708 709 /* … … 834 835 PVM pVM = pUVM->pVM; 835 836 VM_ASSERT_VALID_EXT_RETURN(pVM, VERR_INVALID_VM_HANDLE); 836 *piBp = ~0;837 *piBp = UINT32_MAX; 837 838 838 839 /* … … 907 908 * This must be done on EMT. 908 909 */ 909 uint32_t iBp = -1;910 uint32_t iBp = UINT32_MAX; 910 911 int rc = VMR3ReqCallWaitU(pUVM, 0 /*idDstCpu*/, (PFNRT)dbgfR3BpSetPortIo, 7, 911 912 pUVM, uPort, cPorts, fAccess, &iHitTrigger, &iHitDisable, piBp); … … 942 943 PVM pVM = pUVM->pVM; 943 944 VM_ASSERT_VALID_EXT_RETURN(pVM, VERR_INVALID_VM_HANDLE); 944 *piBp = ~0;945 *piBp = UINT32_MAX; 945 946 946 947 /* … … 1015 1016 * This must be done on EMT. 1016 1017 */ 1017 uint32_t iBp = -1;1018 uint32_t iBp = UINT32_MAX; 1018 1019 int rc = VMR3ReqCallWaitU(pUVM, 0 /*idDstCpu*/, (PFNRT)dbgfR3BpSetMmio, 7, 1019 1020 pUVM, &GCPhys, cb, fAccess, &iHitTrigger, &iHitDisable, piBp); -
trunk/src/VBox/VMM/VMMR3/DBGFDisas.cpp
r62478 r62637 494 494 SelInfo.SelGate = 0; 495 495 SelInfo.GCPtrBase = 0; 496 SelInfo.cbLimit = ~ 0;496 SelInfo.cbLimit = ~(RTGCUINTPTR)0; 497 497 SelInfo.fFlags = PGMMODE_IS_LONG_MODE(enmMode) 498 498 ? DBGFSELINFO_FLAGS_LONG_MODE … … 536 536 SelInfo.SelGate = 0; 537 537 SelInfo.GCPtrBase = Sel * 16; 538 SelInfo.cbLimit = ~ 0;538 SelInfo.cbLimit = ~(RTGCUINTPTR)0; 539 539 SelInfo.fFlags = DBGFSELINFO_FLAGS_REAL_MODE; 540 540 SelInfo.u.Raw.au32[0] = 0; -
trunk/src/VBox/VMM/VMMR3/DBGFOS.cpp
r62478 r62637 93 93 int dbgfR3OSInit(PUVM pUVM) 94 94 { 95 RT_NOREF_PV(pVM); 95 96 return VINF_SUCCESS; 96 97 } -
trunk/src/VBox/VMM/VMMR3/DBGFR3PlugIn.cpp
r62478 r62637 602 602 { 603 603 PDBGFPLUGIN pPlugIn = pVM->pUVM->dbgf.s.pPlugInHead; 604 RT_NOREF_PV(pszArgs); 604 605 if (pPlugIn) 605 606 { -
trunk/src/VBox/VMM/VMMR3/DBGFR3Type.cpp
r62460 r62637 1131 1131 AssertPtrReturn(pszType, VERR_INVALID_POINTER); 1132 1132 AssertPtrReturn(pfnDump, VERR_INVALID_POINTER); 1133 RT_NOREF_PV(fFlags); 1133 1134 1134 1135 int rc = VINF_SUCCESS; -
trunk/src/VBox/VMM/VMMR3/DBGFReg.cpp
r62478 r62637 1915 1915 PCDBGFREGVAL pValue, PCDBGFREGVAL pMask) 1916 1916 { 1917 RT_NOREF_PV(pUVM); 1917 1918 PCDBGFREGSUBFIELD pSubField = pLookupRec->pSubField; 1918 1919 if (pSubField && pSubField->pfnSet) … … 2091 2092 } 2092 2093 2093 DBGFREGVAL Value3 = Value;2094 2094 RTUInt128AssignAndNFirstBits(&Value.u128, pSubField->cBits); 2095 2095 if (rc == VINF_SUCCESS && RTUInt128IsNotEqual(&Value.u128, &Value.u128)) -
trunk/src/VBox/VMM/VMMR3/EMHM.cpp
r62478 r62637 241 241 return emR3HmExecuteInstructionWorker(pVM, pVCpu, rcGC, pszPrefix); 242 242 #else 243 RT_NOREF_PV(pszPrefix); 243 244 return emR3HmExecuteInstructionWorker(pVM, pVCpu, rcGC); 244 245 #endif -
trunk/src/VBox/VMM/VMMR3/EMR3Dbg.cpp
r62478 r62637 69 69 int emR3InitDbg(PVM pVM) 70 70 { 71 RT_NOREF_PV(pVM); 71 72 int rc = VINF_SUCCESS; 72 73 #ifdef VBOX_WITH_DEBUGGER -
trunk/src/VBox/VMM/VMMR3/EMRaw.cpp
r62478 r62637 421 421 return emR3RawExecuteInstructionWorker(pVM, pVCpu, rcGC, pszPrefix); 422 422 #else 423 RT_NOREF_PV(pszPrefix); 423 424 return emR3RawExecuteInstructionWorker(pVM, pVCpu, rcGC); 424 425 #endif … … 435 436 { 436 437 STAM_PROFILE_START(&pVCpu->em.s.StatIOEmu, a); 438 RT_NOREF_PV(pVM); 437 439 438 440 /* Hand it over to the interpreter. */
Note:
See TracChangeset
for help on using the changeset viewer.