VirtualBox

Ignore:
Timestamp:
Nov 29, 2024 11:23:32 AM (7 weeks ago)
Author:
vboxsync
Message:

VMM/PGM: Fixed unused param/function warnings on darwin.arm64. jiraref:VBP-1466

File:
1 edited

Legend:

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

    r107171 r107179  
    16381638
    16391639
     1640#ifndef VBOX_WITH_ONLY_PGM_NEM_MODE
    16401641/**
    16411642 * Resolves an MMIO2 page.
     
    16561657    AssertReturn(hMmio2 <= cMmio2Ranges, NULL);
    16571658    AssertCompile(RT_ELEMENTS(pVM->pgm.s.apMmio2RamRanges)    == RT_ELEMENTS(pVM->pgm.s.aMmio2Ranges));
    1658 #ifdef IN_RING0
     1659# ifdef IN_RING0
    16591660    AssertCompile(RT_ELEMENTS(pVM->pgmr0.s.apMmio2RamRanges)  == RT_ELEMENTS(pVM->pgm.s.aMmio2Ranges));
    16601661    AssertCompile(RT_ELEMENTS(pVM->pgmr0.s.acMmio2RangePages) == RT_ELEMENTS(pVM->pgm.s.aMmio2Ranges));
    1661 #endif
     1662# endif
    16621663    uint32_t const idxFirst = hMmio2 - 1U;
    16631664
    16641665    /* Must check the first one for PGMREGMMIO2RANGE_F_FIRST_CHUNK. */
    16651666    AssertReturn(pVM->pgm.s.aMmio2Ranges[idxFirst].fFlags & PGMREGMMIO2RANGE_F_FIRST_CHUNK, NULL);
    1666 #ifdef IN_RING0
     1667# ifdef IN_RING0
    16671668    AssertReturn(pVM->pgmr0.s.ahMmio2MapObjs[idxFirst] != NIL_RTR0MEMOBJ, NULL); /* Only the first chunk has a backing object. */
    1668 #endif
     1669# endif
    16691670
    16701671    /* Loop thru the sub-ranges till we find the one covering offMmio2. */
    16711672    for (uint32_t idx = idxFirst; idx < cMmio2Ranges; idx++)
    16721673    {
    1673 #ifdef IN_RING3
     1674# ifdef IN_RING3
    16741675        AssertReturn(pVM->pgm.s.aMmio2Ranges[idx].pDevInsR3 == pDevIns, NULL);
    1675 #else
     1676# else
    16761677        AssertReturn(pVM->pgm.s.aMmio2Ranges[idx].pDevInsR3 == pDevIns->pDevInsForR3, NULL);
    1677 #endif
     1678# endif
    16781679
    16791680        /* Does it match the offset? */
    16801681        PPGMRAMRANGE const pRamRange = pVM->CTX_EXPR(pgm, pgmr0, pgm).s.apMmio2RamRanges[idx];
    16811682        AssertReturn(pRamRange, NULL);
    1682 #ifdef IN_RING3
     1683# ifdef IN_RING3
    16831684        RTGCPHYS const     cbRange   = RT_MIN(pRamRange->cb, pVM->pgm.s.aMmio2Ranges[idx].cbReal);
    1684 #else
     1685# else
    16851686        RTGCPHYS const     cbRange   = RT_MIN(pRamRange->cb, (RTGCPHYS)pVM->pgmr0.s.acMmio2RangePages[idx] << GUEST_PAGE_SHIFT);
    1686 #endif
     1687# endif
    16871688        if (offMmio2Page < cbRange)
    16881689            return &pRamRange->aPages[offMmio2Page >> GUEST_PAGE_SHIFT];
     
    16951696    return NULL;
    16961697}
     1698#endif /* !VBOX_WITH_ONLY_PGM_NEM_MODE */
    16971699
    16981700
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