VirtualBox

Changeset 1112 in vbox for trunk/src/recompiler


Ignore:
Timestamp:
Feb 28, 2007 3:32:54 PM (18 years ago)
Author:
vboxsync
Message:

More corrections.

File:
1 edited

Legend:

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

    r1096 r1112  
    27162716
    27172717
    2718 #ifdef PGM_DYNAMIC_RAM_ALLOC
    27192718/**
    27202719 *  Convert GC physical address to HC virt
     
    27262725void *remR3GCPhys2HCVirt(void *env, target_ulong addr)
    27272726{
     2727#ifdef PGM_DYNAMIC_RAM_ALLOC
    27282728    PVM      pVM = ((CPUState *)env)->pVM;
    27292729    uint32_t i;
     
    27422742    Log(("remR3GCPhys2HCVirt: %x -> %x\n", addr, pVM->rem.s.paGCPhysToHCVirt[addr >> PGM_DYNAMIC_CHUNK_SHIFT] + (addr & PGM_DYNAMIC_CHUNK_OFFSET_MASK)));
    27432743    return (void *)(pVM->rem.s.paGCPhysToHCVirt[addr >> PGM_DYNAMIC_CHUNK_SHIFT] + (addr & PGM_DYNAMIC_CHUNK_OFFSET_MASK));
     2744#else
     2745    return (target_ulong)addr - (target_ulong)phys_ram_base;
     2746#endif
    27442747}
    27452748
     
    27542757target_ulong remR3HCVirt2GCPhys(void *env, void *addr)
    27552758{
     2759#ifdef PGM_DYNAMIC_RAM_ALLOC
    27562760    PVM         pVM    = ((CPUState *)env)->pVM;
    27572761    RTHCUINTPTR HCVirt = (RTHCUINTPTR)addr;
     
    27892793    AssertReleaseMsgFailed(("No translation for physical address %VHv???\n", addr));
    27902794    return 0;
     2795#else
     2796    return (target_ulong)addr - (target_ulong)phys_ram_base;
     2797#endif
    27912798}
    27922799
     
    28132820}
    28142821
    2815 #endif /* PGM_DYNAMIC_RAM_ALLOC */
    28162822
    28172823
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