VirtualBox

忽略:
時間撮記:
2007-9-26 上午09:03:00 (17 年 以前)
作者:
vboxsync
訊息:

GC phys/virt to HC virt functions are no longer accessible in our PDM interface.
Rewrote disassembly functions to use the mapping functions.

Code that runs in EMT (like CSAM/PATM) can still use the old conversion functions. Easier to use
and (far) less overhead.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r4811 r5040  
    759759PGMDECL(int) PGMPhysGCPhys2HCPtr(PVM pVM, RTGCPHYS GCPhys, RTUINT cbRange, PRTHCPTR pHCPtr)
    760760{
     761#ifdef NEW_PHYS_CODE
     762    VM_ASSERT_EMT(pVM); /* no longer safe for use outside the EMT thread! */
     763#endif
     764
    761765#ifdef PGM_DYNAMIC_RAM_ALLOC
    762766    if ((GCPhys & PGM_DYNAMIC_CHUNK_BASE_MASK) != ((GCPhys+cbRange-1) & PGM_DYNAMIC_CHUNK_BASE_MASK))
     
    850854PGMDECL(int) PGMPhysGCPtr2HCPtr(PVM pVM, RTGCPTR GCPtr, PRTHCPTR pHCPtr)
    851855{
     856#ifdef NEW_PHYS_CODE
     857    VM_ASSERT_EMT(pVM); /* no longer safe for use outside the EMT thread! */
     858#endif
     859
    852860    RTGCPHYS GCPhys;
    853861    int rc = PGM_GST_PFN(GetPage,pVM)(pVM, (RTGCUINTPTR)GCPtr, NULL, &GCPhys);
     
    874882PGMDECL(int) PGMPhysGCPtr2HCPtrByGstCR3(PVM pVM, RTGCPTR GCPtr, uint32_t cr3, unsigned fFlags, PRTHCPTR pHCPtr)
    875883{
     884#ifdef NEW_PHYS_CODE
     885    VM_ASSERT_EMT(pVM); /* no longer safe for use outside the EMT thread! */
     886#endif
    876887    /*
    877888     * PAE or 32-bit?
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette