VirtualBox

Changeset 100108 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jun 7, 2023 8:05:13 PM (20 months ago)
Author:
vboxsync
Message:

*: Fix build issues when setting VBOX_WITH_WARNINGS_AS_ERRORS=1 on darwin.arm64 and make it a default, bugref:10469

Location:
trunk/src/VBox/VMM/VMMR3
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/DBGFDisas.cpp

    r99220 r100108  
    383383
    384384#if defined(VBOX_VMM_TARGET_ARMV8)
    385     RT_NOREF(pVM, Sel, GCPtr, rc, fFlags, pszOutput, cbOutput, pcbInstr, pDisState);
     385    RT_NOREF(pVM, pVCpu, Sel, GCPtr, rc, fFlags, pszOutput, cbOutput, pcbInstr, pDisState);
    386386    AssertReleaseFailed(); /** @todo */
    387387    return VERR_NOT_IMPLEMENTED;
  • trunk/src/VBox/VMM/VMMR3/GICR3.cpp

    r100100 r100108  
    210210                               STAMUNIT_TICKS_PER_CALL, a_pszDesc, a_pszNameFmt, idCpu)
    211211
     212#ifdef VBOX_WITH_STATISTICS
    212213    for (VMCPUID idCpu = 0; idCpu < pVM->cCpus; idCpu++)
    213214    {
     
    215216        PGICCPU pGicCpu  = VMCPU_TO_GICCPU(pVCpu);
    216217
    217 #ifdef VBOX_WITH_STATISTICS
    218218# if 0 /* No R0 for now. */
    219219        GIC_REG_COUNTER(&pGicCpu->StatMmioReadRZ,    "%u/RZ/MmioRead",    "Number of APIC MMIO reads in RZ.");
     
    227227        GIC_REG_COUNTER(&pGicCpu->StatSysRegReadR3,  "%u/R3/SysRegRead",  "Number of GIC system register reads in R3.");
    228228        GIC_REG_COUNTER(&pGicCpu->StatSysRegWriteR3, "%u/R3/SysRegWrite", "Number of GIC system register writes in R3.");
     229    }
    229230#endif
    230     }
    231231
    232232# undef GIC_PROF_COUNTER
  • trunk/src/VBox/VMM/VMMR3/GIM.cpp

    r99739 r100108  
    350350static DECLCALLBACK(int) gimR3LoadDone(PVM pVM, PSSMHANDLE pSSM)
    351351{
     352#if defined(VBOX_VMM_TARGET_ARMV8)
     353    RT_NOREF(pSSM);
     354#endif
     355
    352356    switch (pVM->gim.s.enmProviderId)
    353357    {
     
    399403VMMR3_INT_DECL(void) GIMR3Relocate(PVM pVM, RTGCINTPTR offDelta)
    400404{
     405#if defined(VBOX_VMM_TARGET_ARMV8)
     406    RT_NOREF(offDelta);
     407#endif
     408
    401409    switch (pVM->gim.s.enmProviderId)
    402410    {
  • trunk/src/VBox/VMM/VMMR3/HM-armv8.cpp

    r99051 r100108  
    539539{
    540540    Assert(pVM->bMainExecutionEngine != VM_EXEC_ENGINE_NOT_SET);
    541     return false;
    542 }
     541    RT_NOREF(pVM);
     542    return false;
     543}
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-darwin-armv8.cpp

    r100102 r100108  
    889889                 fIsv, fL2Fault, fWrite, f64BitReg, fSignExtend, uReg, uAcc, GCPtrDataAbrt, GCPhysDataAbrt));
    890890
     891    RT_NOREF(fL2Fault, GCPtrDataAbrt);
    891892    AssertReturn(fIsv, VERR_NOT_SUPPORTED); /** @todo Implement using IEM when this should occur. */
    892893
  • trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletionFile.cpp

    r99775 r100108  
    420420        pdmacFileEpAddTask(pEpFile, pIoTask);
    421421        off        += paSegments[i].cbSeg;
     422#ifdef RT_STRICT
    422423        cbTransfer -= paSegments[i].cbSeg;
     424#else
     425        RT_NOREF(cbTransfer);
     426#endif
    423427    }
    424428
  • trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp

    r99743 r100108  
    12371237    uint64_t u64Fsb = 0;
    12381238    AssertReleaseFailed();
     1239    RT_NOREF(pDevIns);
    12391240#else
    12401241    uint64_t u64Fsb = CPUMGetGuestScalableBusFrequency(pDevIns->Internal.s.pVMR3);
     
    46374638#ifdef VBOX_VMM_TARGET_ARMV8
    46384639    AssertReleaseFailed();
     4640    RT_NOREF(pDevIns, fEnable);
    46394641#else
    46404642    PGMR3PhysSetA20(VMMGetCpu(pDevIns->Internal.s.pVMR3), fEnable);
     
    46554657
    46564658#ifdef VBOX_VMM_TARGET_ARMV8
    4657     RT_NOREF(iLeaf, pEax, pEbx, pEcx, pEdx);
     4659    RT_NOREF(pDevIns, iLeaf, pEax, pEbx, pEcx, pEdx);
    46584660    AssertReleaseFailed();
    46594661#else
  • trunk/src/VBox/VMM/VMMR3/PDMDevMiscHlp.cpp

    r99821 r100108  
    6363    PDMDEV_ASSERT_DEVINS(pDevIns);
    6464    PVM    pVM = pDevIns->Internal.s.pVMR3;
    65     PVMCPU pVCpu = pVM->apCpusR3[0];  /* for PIC we always deliver to CPU 0, SMP uses APIC */
    6665
    6766    /* IRQ state should be loaded as-is by "LoadExec". Changes can be made from LoadDone. */
     
    7069#if defined(VBOX_VMM_TARGET_ARMV8)
    7170    AssertReleaseFailed();
     71    RT_NOREF(pVM);
    7272#else
     73    PVMCPU pVCpu = pVM->apCpusR3[0];  /* for PIC we always deliver to CPU 0, SMP uses APIC */
    7374    APICLocalInterrupt(pVCpu, 0 /* u8Pin */, 1 /* u8Level */, VINF_SUCCESS /* rcRZ */);
    7475#endif
     
    8182    PDMDEV_ASSERT_DEVINS(pDevIns);
    8283    PVM pVM = pDevIns->Internal.s.pVMR3;
    83     PVMCPU pVCpu = pVM->apCpusR3[0];  /* for PIC we always deliver to CPU 0, SMP uses APIC */
    8484
    8585    /* IRQ state should be loaded as-is by "LoadExec". Changes can be made from LoadDone. */
     
    8888#if defined(VBOX_VMM_TARGET_ARMV8)
    8989    AssertReleaseFailed();
     90    RT_NOREF(pVM);
    9091#else
     92    PVMCPU pVCpu = pVM->apCpusR3[0];  /* for PIC we always deliver to CPU 0, SMP uses APIC */
    9193    APICLocalInterrupt(pVCpu, 0 /* u8Pin */,  0 /* u8Level */, VINF_SUCCESS /* rcRZ */);
    9294#endif
     
    136138{
    137139    PDMDEV_ASSERT_DEVINS(pDevIns);
    138     PVM pVM = pDevIns->Internal.s.pVMR3;
    139140    LogFlow(("pdmR3IoApicHlp_ApicBusDeliver: caller='%s'/%d: u8Dest=%RX8 u8DestMode=%RX8 u8DeliveryMode=%RX8 uVector=%RX8 u8Polarity=%RX8 u8TriggerMode=%RX8 uTagSrc=%#x\n",
    140141             pDevIns->pReg->szName, pDevIns->iInstance, u8Dest, u8DestMode, u8DeliveryMode, uVector, u8Polarity, u8TriggerMode, uTagSrc));
    141142#if defined(VBOX_VMM_TARGET_ARMV8)
    142143    AssertReleaseFailed();
     144    RT_NOREF(pDevIns, u8Dest, u8DestMode, u8DeliveryMode, uVector, u8Polarity, u8TriggerMode, uTagSrc);
    143145    return VERR_NOT_IMPLEMENTED;
    144146#else
     147    PVM pVM = pDevIns->Internal.s.pVMR3;
    145148    return APICBusDeliver(pVM, u8Dest, u8DestMode, u8DeliveryMode, uVector, u8Polarity, u8TriggerMode, uTagSrc);
    146149#endif
  • trunk/src/VBox/VMM/VMMR3/PGM-armv8.cpp

    r99055 r100108  
    714714
    715715    LogFlow(("PGMGstModifyPage %RGv %d bytes fFlags=%08llx fMask=%08llx\n", GCPtr, cb, fFlags, fMask));
     716    RT_NOREF(pVCpu, GCPtr, cb, fFlags, fMask);
    716717
    717718    AssertReleaseFailed();
Note: See TracChangeset for help on using the changeset viewer.

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