VirtualBox

Ignore:
Timestamp:
Oct 21, 2011 2:18:22 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74507
Message:

VMM: -Wunused-parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r39038 r39078  
    402402    if (IOM_SUCCESS(rcStrict))
    403403        pCtxCore->rip += cbOp;
     404    NOREF(pVCpu);
    404405    return rcStrict;
    405406#else
     407    NOREF(pVM); NOREF(pVCpu); NOREF(pCtxCore); NOREF(pDis); NOREF(cbOp);
    406408    AssertReleaseMsgFailed(("not implemented\n"));
    407409    return VERR_NOT_IMPLEMENTED;
     
    421423     * instruction and it either flushed the TLB or the CPU reused it.
    422424     */
     425#else
     426    NOREF(pVM);
    423427#endif
    424428    return PGMPhysInterpretedReadNoHandlers(pVCpu, pCtxCore, pvDst, GCPtrSrc, cb, /*fMayTrap*/ false);
     
    430434    /* Don't use MMGCRamWrite here as it does not respect zero pages, shared
    431435       pages or write monitored pages. */
     436    NOREF(pVM);
    432437    return PGMPhysInterpretedWriteNoHandlers(pVCpu, pCtxCore, GCPtrDst, pvSrc, cb, /*fMayTrap*/ false);
    433438}
     
    508513{
    509514    OP_PARAMVAL param1, param2;
     515    NOREF(pvFault);
    510516
    511517    /* Source to make DISQueryParamVal read the register value - ugly hack */
     
    642648{
    643649    OP_PARAMVAL param1;
     650    NOREF(pvFault);
    644651
    645652    int rc = DISQueryParamVal(pRegFrame, pDis, &pDis->param1, &param1, PARAM_DEST);
     
    711718    Assert(pDis->mode != CPUMODE_64BIT);    /** @todo check */
    712719    OP_PARAMVAL param1;
     720    NOREF(pvFault);
     721
    713722    int rc = DISQueryParamVal(pRegFrame, pDis, &pDis->param1, &param1, PARAM_DEST);
    714723    if(RT_FAILURE(rc))
     
    791800{
    792801    OP_PARAMVAL param1, param2;
     802    NOREF(pvFault);
    793803
    794804    int rc = DISQueryParamVal(pRegFrame, pDis, &pDis->param1, &param1, PARAM_DEST);
     
    887897    void *pvParam1;
    888898    OP_PARAMVAL param1, param2;
     899    NOREF(pvFault);
    889900
    890901#if HC_ARCH_BITS == 32 && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL_IN_R0)
     
    958969                             PFNEMULATEPARAM3 pfnEmulate)
    959970{
     971    NOREF(pvFault);
    960972    OP_PARAMVAL param1, param2;
    961973    int rc = DISQueryParamVal(pRegFrame, pDis, &pDis->param1, &param1, PARAM_DEST);
     
    12051217static int emInterpretMov(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)
    12061218{
     1219    NOREF(pvFault);
    12071220    OP_PARAMVAL param1, param2;
    12081221    int rc = DISQueryParamVal(pRegFrame, pDis, &pDis->param1, &param1, PARAM_DEST);
     
    13431356    uint64_t cTransfers;
    13441357    int      offIncrement;
     1358    NOREF(pvFault);
    13451359
    13461360    /* Don't support any but these three prefix bytes. */
     
    14931507{
    14941508    OP_PARAMVAL param1, param2;
     1509    NOREF(pvFault);
    14951510
    14961511#if HC_ARCH_BITS == 32 && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL_IN_R0)
     
    15641579    Assert(pDis->mode != CPUMODE_64BIT);    /** @todo check */
    15651580    OP_PARAMVAL param1;
     1581    NOREF(pvFault);
    15661582
    15671583    /* Source to make DISQueryParamVal read the register value - ugly hack */
     
    16191635    void *pvParamReg2;
    16201636    size_t cbParamReg2;
     1637    NOREF(pvFault);
    16211638
    16221639    /* Source to make DISQueryParamVal read the register value - ugly hack */
     
    17461763{
    17471764    /* only allow direct calls to EMInterpretIret for now */
     1765    NOREF(pVM); NOREF(pVCpu); NOREF(pDis); NOREF(pRegFrame); NOREF(pvFault); NOREF(pcbSize);
    17481766    return VERR_EM_INTERPRETER;
    17491767}
     
    17551773{
    17561774    /* Nothing to do. */
     1775    NOREF(pVM); NOREF(pVCpu); NOREF(pDis); NOREF(pRegFrame); NOREF(pvFault); NOREF(pcbSize);
    17571776    return VINF_SUCCESS;
    17581777}
     
    17741793     * (in absence of segment override prefixes)????
    17751794     */
     1795    NOREF(pVM); NOREF(pRegFrame);
    17761796#ifdef IN_RC
    17771797    LogFlow(("RC: EMULATE: invlpg %RGv\n", pAddrGC));
     
    17951815    OP_PARAMVAL param1;
    17961816    RTGCPTR     addr;
     1817    NOREF(pvFault); NOREF(pVM); NOREF(pcbSize);
    17971818
    17981819    VBOXSTRICTRC rc = DISQueryParamVal(pRegFrame, pDis, &pDis->param1, &param1, PARAM_SOURCE);
     
    18431864{
    18441865    uint32_t iLeaf = pRegFrame->eax;
     1866    NOREF(pVM);
    18451867
    18461868    /* cpuid clears the high dwords of the affected 64 bits registers. */
     
    18621884static int emInterpretCpuId(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)
    18631885{
     1886    NOREF(pVM); NOREF(pVCpu); NOREF(pDis); NOREF(pRegFrame); NOREF(pvFault); NOREF(pcbSize);
    18641887    int rc = EMInterpretCpuId(pVM, pVCpu, pRegFrame);
    18651888    return rc;
     
    18831906    int rc = CPUMGetGuestCRx(pVCpu, SrcRegCrx, &val64);
    18841907    AssertMsgRCReturn(rc, ("CPUMGetGuestCRx %d failed\n", SrcRegCrx), VERR_EM_INTERPRETER);
     1908    NOREF(pVM);
    18851909
    18861910    if (CPUMIsGuestIn64BitCode(pVCpu, pRegFrame))
     
    19091933VMMDECL(int) EMInterpretCLTS(PVM pVM, PVMCPU pVCpu)
    19101934{
     1935    NOREF(pVM);
    19111936    uint64_t cr0 = CPUMGetGuestCR0(pVCpu);
    19121937    if (!(cr0 & X86_CR0_TS))
     
    19201945static int emInterpretClts(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)
    19211946{
     1947    NOREF(pDis); NOREF(pRegFrame); NOREF(pvFault); NOREF(pcbSize);
    19221948    return EMInterpretCLTS(pVM, pVCpu);
    19231949}
     
    19401966    uint64_t msrEFER;
    19411967    int      rc, rc2;
     1968    NOREF(pVM);
    19421969
    19431970    /** @todo Clean up this mess. */
     
    21232150    OP_PARAMVAL param1;
    21242151    uint32_t    val;
     2152    NOREF(pvFault); NOREF(pcbSize);
    21252153
    21262154    int rc = DISQueryParamVal(pRegFrame, pDis, &pDis->param1, &param1, PARAM_SOURCE);
     
    22022230static int emInterpretMovCRx(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)
    22032231{
     2232    NOREF(pvFault); NOREF(pcbSize);
    22042233    if ((pDis->param1.flags == USE_REG_GEN32 || pDis->param1.flags == USE_REG_GEN64) && pDis->param2.flags == USE_REG_CR)
    22052234        return EMInterpretCRxRead(pVM, pVCpu, pRegFrame, pDis->param1.base.reg_gen, pDis->param2.base.reg_ctrl);
     
    22272256    uint64_t val;
    22282257    int      rc;
     2258    NOREF(pVM);
    22292259
    22302260    if (CPUMIsGuestIn64BitCode(pVCpu, pRegFrame))
     
    22652295{
    22662296    uint64_t val64;
     2297    NOREF(pVM);
    22672298
    22682299    int rc = CPUMGetGuestDRx(pVCpu, SrcRegDrx, &val64);
     
    22882319{
    22892320    int rc = VERR_EM_INTERPRETER;
     2321    NOREF(pvFault); NOREF(pcbSize);
    22902322
    22912323    if((pDis->param1.flags == USE_REG_GEN32 || pDis->param1.flags == USE_REG_GEN64) && pDis->param2.flags == USE_REG_DBG)
     
    23122344    OP_PARAMVAL param1;
    23132345    RTSEL       sel;
     2346    NOREF(pVM); NOREF(pvFault); NOREF(pcbSize);
    23142347
    23152348    int rc = DISQueryParamVal(pRegFrame, pDis, &pDis->param1, &param1, PARAM_SOURCE);
     
    23602393    RTGCPTR     pParam1;
    23612394    X86XDTR32   dtr32;
     2395    NOREF(pvFault); NOREF(pcbSize);
    23622396
    23632397    Log(("Emulate %s at %RGv\n", emGetMnemonic(pDis), (RTGCPTR)pRegFrame->rip));
     
    24042438static int emInterpretSti(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)
    24052439{
     2440    NOREF(pcbSize);
    24062441    PPATMGCSTATE pGCState = PATMQueryGCState(pVM);
    24072442
     
    24302465emInterpretHlt(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)
    24312466{
     2467    NOREF(pVM); NOREF(pVCpu); NOREF(pDis); NOREF(pRegFrame); NOREF(pvFault); NOREF(pcbSize);
    24322468    return VINF_EM_HALT;
    24332469}
     
    24562492    pRegFrame->rdx = (uTicks >> 32ULL);
    24572493
     2494    NOREF(pVM);
    24582495    return VINF_SUCCESS;
    24592496}
     
    24982535static int emInterpretRdtsc(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)
    24992536{
     2537    NOREF(pDis); NOREF(pvFault); NOREF(pcbSize);
    25002538    return EMInterpretRdtsc(pVM, pVCpu, pRegFrame);
    25012539}
     
    25262564    pRegFrame->rdx = 0;
    25272565    /** @todo We should trigger a #GP here if the cpu doesn't support the index in ecx. */
     2566
     2567    NOREF(pVM);
    25282568    return VINF_SUCCESS;
    25292569}
     
    25342574static int emInterpretRdpmc(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)
    25352575{
     2576    NOREF(pDis); NOREF(pvFault); NOREF(pcbSize);
    25362577    return EMInterpretRdpmc(pVM, pVCpu, pRegFrame);
    25372578}
     
    25432584{
    25442585    uint32_t u32Dummy, u32ExtFeatures, cpl;
     2586    NOREF(pVM);
    25452587
    25462588    if (pRegFrame->ecx != 0)
     
    25682610static int emInterpretMonitor(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)
    25692611{
     2612    NOREF(pDis); NOREF(pvFault); NOREF(pcbSize);
    25702613    return EMInterpretMonitor(pVM, pVCpu, pRegFrame);
    25712614}
     
    25782621{
    25792622    uint32_t u32Dummy, u32ExtFeatures, cpl, u32MWaitFeatures;
     2623    NOREF(pVM);
    25802624
    25812625    /* Get the current privilege level. */
     
    26212665static VBOXSTRICTRC emInterpretMWait(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)
    26222666{
     2667    NOREF(pDis); NOREF(pvFault); NOREF(pcbSize);
    26232668    return EMInterpretMWait(pVM, pVCpu, pRegFrame);
    26242669}
     
    27342779    /** @todo According to the Intel manuals, there's a REX version of RDMSR that is slightly different.
    27352780     *  That version clears the high dwords of both RDX & RAX */
     2781    NOREF(pVM);
    27362782
    27372783    /* Get the current privilege level. */
     
    27612807             different, so we play safe by completely disassembling the instruction. */
    27622808    Assert(!(pDis->prefix & PREFIX_REX));
     2809    NOREF(pDis); NOREF(pvFault); NOREF(pcbSize);
    27632810    return EMInterpretRdmsr(pVM, pVCpu, pRegFrame);
    27642811}
     
    27872834    LogFlow(("EMInterpretWrmsr %s (%x) val=%RX64\n", emMSRtoString(pRegFrame->ecx), pRegFrame->ecx,
    27882835             RT_MAKE_U64(pRegFrame->eax, pRegFrame->edx)));
     2836    NOREF(pVM);
    27892837    return rc;
    27902838}
     
    27962844static int emInterpretWrmsr(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDis, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize)
    27972845{
     2846    NOREF(pDis); NOREF(pvFault); NOREF(pcbSize);
    27982847    return EMInterpretWrmsr(pVM, pVCpu, pRegFrame);
    27992848}
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