VirtualBox

Ignore:
Timestamp:
Mar 4, 2007 7:34:24 PM (18 years ago)
Author:
vboxsync
Message:

Restore the PGM_DYNAMIC_RAM_ALLOC tests and #include <VBox/pgm.h> to make sure it's defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/new/exec-all.h

    r1113 r1182  
    2626#ifdef VBOX
    2727# include <VBox/tm.h>
     28# include <VBox/pgm.h> /* PGM_DYNAMIC_RAM_ALLOC */
    2829# ifndef LOG_GROUP
    2930#  define LOG_GROUP LOG_GROUP_REM
    30 # endif 
     31# endif
    3132# include <VBox/log.h>
    3233# include "REMInternal.h"
     
    603604# ifdef VBOX
    604605target_ulong remR3PhysGetPhysicalAddressCode(CPUState *env, target_ulong addr, CPUTLBEntry *pTLBEntry);
     606#  ifdef PGM_DYNAMIC_RAM_ALLOC
    605607target_ulong remR3HCVirt2GCPhys(void *env, void *addr);
    606 # endif
     608#  endif
     609# endif
    607610/* NOTE: this function can trigger an exception */
    608611/* NOTE2: the returned address is not exactly the physical address: it
     
    636639# ifdef VBOX
    637640        /* deal with non-MMIO access handlers. */
    638         return remR3PhysGetPhysicalAddressCode(env, addr, &env->tlb_table[is_user][index]); 
     641        return remR3PhysGetPhysicalAddressCode(env, addr, &env->tlb_table[is_user][index]);
    639642# else
    640643        cpu_abort(env, "Trying to execute code outside RAM or ROM at 0x%08lx\n", addr);
    641644# endif
    642645    }
    643 # ifdef VBOX
     646# if defined(VBOX) && defined(PGM_DYNAMIC_RAM_ALLOC)
    644647    return remR3HCVirt2GCPhys(env, (void *)(addr + env->tlb_table[is_user][index].addend));
    645648# else
    646649    return addr + env->tlb_table[is_user][index].addend - (unsigned long)phys_ram_base;
    647 # endif 
     650# endif
    648651}
    649652#endif
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