VirtualBox

Changeset 17342 in vbox for trunk


Ignore:
Timestamp:
Mar 4, 2009 12:24:58 PM (16 years ago)
Author:
vboxsync
Message:

REM: remove excessive assertions, as new HVA -> PGA works just fine

Location:
trunk/src/recompiler_new
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler_new/cpu-all.h

    r15284 r17342  
    272272#ifndef REM_PHYS_ADDR_IN_TLB
    273273void       *remR3TlbGCPhys2Ptr(CPUState *env1, target_ulong physAddr, int fWritable);
    274 target_ulong remR3HCVirt2GCPhys(CPUState *env1, void *addr);
    275274#endif
    276275
  • trunk/src/recompiler_new/exec-all.h

    r17274 r17342  
    380380# ifdef VBOX
    381381target_ulong remR3PhysGetPhysicalAddressCode(CPUState *env, target_ulong addr, CPUTLBEntry *pTLBEntry, target_phys_addr_t ioTLBEntry);
    382 #  if !defined(REM_PHYS_ADDR_IN_TLB)
    383 target_ulong remR3HCVirt2GCPhys(CPUState *env1, void *addr);
    384 #  endif
    385382# endif
    386383/* NOTE: this function can trigger an exception */
     
    419416# elif defined(VBOX)
    420417    Assert(env1->phys_addends[mmu_idx][page_index] != -1);
    421     /** @todo: nike: will remove this assert along with remR3HCVirt2GCPhys() soon */
    422     Assert(remR3HCVirt2GCPhys(env1, (void *)(uintptr_t)(addr + env1->tlb_table[mmu_idx][page_index].addend)) == addr + env1->phys_addends[mmu_idx][page_index]);
    423418    return addr + env1->phys_addends[mmu_idx][page_index];
    424419# else
  • trunk/src/recompiler_new/exec.c

    r17274 r17342  
    20852085        Assert(phys_addend != -1);
    20862086        ram_addr = (tlb_entry->addr_write & TARGET_PAGE_MASK) + phys_addend;
    2087        
    2088         /** @todo: nike: will remove this assert along with remR3HCVirt2GCPhys() soon */
    2089         Assert(ram_addr == remR3HCVirt2GCPhys(first_cpu, (void*)((tlb_entry->addr_write & TARGET_PAGE_MASK) + tlb_entry->addend)));
    20902087#endif
    20912088        if (!cpu_physical_memory_is_dirty(ram_addr)) {
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