VirtualBox

Ignore:
Timestamp:
Mar 8, 2009 5:32:49 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
43972
Message:

REM,PGM: Added two mutualy exclusive flags to REMR3NotifyPhysRamRegister to indicate whether it's MMIO2 or RAM that's being registered. This is for the new code only, the old one sticks to the MM_RAM_FLAGS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/VBoxRecompiler.c

    r17537 r17538  
    27832783 * @param   GCPhys      The physical address the RAM.
    27842784 * @param   cb          Size of the memory.
    2785  * @param   fFlags      Flags of the MM_RAM_FLAGS_* defines.
     2785 * @param   fFlags      Flags of the REM_NOTIFY_PHYS_RAM_FLAGS_* defines.
    27862786 */
    27872787REMR3DECL(void) REMR3NotifyPhysRamRegister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, unsigned fFlags)
    27882788{
    2789     Log(("REMR3NotifyPhysRamRegister: GCPhys=%RGp cb=%RGp fFlags=%d\n", GCPhys, cb, fFlags));
     2789    Log(("REMR3NotifyPhysRamRegister: GCPhys=%RGp cb=%RGp fFlags=%#x\n", GCPhys, cb, fFlags));
    27902790    VM_ASSERT_EMT(pVM);
    27912791
     
    27962796    Assert(cb);
    27972797    Assert(RT_ALIGN_Z(cb, PAGE_SIZE) == cb);
    2798 
    2799     /*
    2800      * Base ram?
    2801      */
    2802     if (!GCPhys) /** @todo add a flag for identifying MMIO2 memory here (new phys code)*/
     2798#ifdef VBOX_WITH_NEW_PHYS_CODE
     2799    AssertMsg(fFlags == REM_NOTIFY_PHYS_RAM_FLAGS_RAM || fFlags == REM_NOTIFY_PHYS_RAM_FLAGS_MMIO2, ("#x\n", fFlags));
     2800#endif
     2801
     2802    /*
     2803     * Base ram? Update GCPhysLastRam.
     2804     */
     2805#ifdef VBOX_WITH_NEW_PHYS_CODE
     2806    if (fFlags & REM_NOTIFY_PHYS_RAM_FLAGS_RAM)
     2807#else
     2808    if (!GCPhys)
     2809#endif
    28032810    {
    28042811        if (GCPhys + (cb - 1) > pVM->rem.s.GCPhysLastRam)
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