VirtualBox

Changeset 13565 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Oct 24, 2008 5:48:59 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38439
Message:

#1865: REM (VMM bits) - moved EMFlushREMTBs to REMFlushTBs, deleted dead REMGC.cpp.

Location:
trunk/src/VBox/VMM/VMMAll
Files:
3 edited

Legend:

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

    r13561 r13565  
    8383{
    8484    return pVM->em.s.enmState;
    85 }
    86 
    87 
    88 /**
    89  * Flushes the REM translation blocks the next time we execute code there.
    90  *
    91  * @param   pVM         The VM handle.
    92  *
    93  * @todo    This doesn't belong here, it should go in REMAll.cpp!
    94  */
    95 VMMDECL(void) EMFlushREMTBs(PVM pVM)
    96 {
    97     LogFlow(("EMFlushREMTBs\n"));
    98     pVM->em.s.fREMFlushTBs = true;
    9985}
    10086
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r13186 r13565  
    2020 */
    2121
     22/*******************************************************************************
     23*   Defined Constants And Macros                                               *
     24*******************************************************************************/
    2225/** @def PGM_IGNORE_RAM_FLAGS_RESERVED
    2326 * Don't respect the MM_RAM_FLAGS_RESERVED flag when converting to HC addresses.
     
    263266    AssertFatalFailed();
    264267}
    265 
    266268
    267269
     
    11261128    pCache->Entry[iCacheIndex].pbR3   = pbR3;
    11271129}
    1128 #endif
     1130#endif /* IN_RING3 */
    11291131
    11301132/**
     
    12161218                        void *pvSrc = PGMRAMRANGE_GETHCPTR(pRam, off)
    12171219
    1218                         /** @note Dangerous assumption that HC handlers don't do anything that really requires an EMT lock! */
     1220                        /* Note! Dangerous assumption that HC handlers don't do anything that really requires an EMT lock! */
    12191221                        rc = pNode->pfnHandlerR3(pVM, GCPhys, pvSrc, pvBuf, cb, PGMACCESSTYPE_READ, pNode->pvUserR3);
    12201222                    }
     
    12641266                        void *pvSrc = PGMRAMRANGE_GETHCPTR(pRam, off)
    12651267
    1266                         /* Note: Dangerous assumption that HC handlers don't do anything that really requires an EMT lock! */
     1268                        /* Note! Dangerous assumption that HC handlers don't do anything that really requires an EMT lock! */
    12671269                        rc = pNode->pfnHandlerR3(pVM, (RTGCPTR)GCPtr, pvSrc, pvBuf, cb, PGMACCESSTYPE_READ, 0);
    12681270                    }
     
    13851387    return;
    13861388}
     1389
    13871390
    13881391/**
  • trunk/src/VBox/VMM/VMMAll/REMAll.cpp

    r12989 r13565  
    3434#include <iprt/assert.h>
    3535
     36
     37#ifndef IN_RING3
    3638
    3739/**
     
    157159}
    158160
     161#endif /* !IN_RING3 */
     162
     163/**
     164 * Make REM flush all translation block upon the next call to REMR3State().
     165 *
     166 * @param   pVM             Pointer to the shared VM structure.
     167 */
     168VMMDECL(void) REMFlushTBs(PVM pVM)
     169{
     170    LogFlow(("REMFlushTBs: fFlushTBs=%RTbool fInREM=%RTbool fInStateSync=%RTbool\n",
     171             pVM->rem.s.fFlushTBs, pVM->rem.s.fInREM, pVM->rem.s.fInStateSync));
     172    pVM->rem.s.fFlushTBs = true;
     173}
     174
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