VirtualBox

Changeset 1111 in vbox for trunk/src/recompiler


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

Wrong changes in old sync

Location:
trunk/src/recompiler/new
Files:
2 edited

Legend:

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

    r1001 r1111  
    103103uint32_t phys_ram_dirty_size;
    104104#endif /* VBOX */
    105 #if !defined(VBOX) || !defined(PGM_DYNAMIC_RAM_ALLOC)
     105#ifndef VBOX
    106106uint8_t *phys_ram_base;
    107107#endif
     
    276276          pd[i].phys_offset = IO_MEM_UNASSIGNED;
    277277    }
    278 #if defined(VBOX) && defined(PGM_DYNAMIC_RAM_ALLOC)
     278#ifdef VBOX
    279279    pd = ((PhysPageDesc *)pd) + (index & (L2_SIZE - 1));
    280280    if (RT_UNLIKELY((pd->phys_offset & ~TARGET_PAGE_MASK) == IO_MEM_RAM_MISSING))
     
    13101310#endif /* !VBOX */
    13111311
    1312 #if !defined(VBOX) /* VBOX: we have our own routine. */
     1312#ifndef VBOX /* VBOX: we have our own routine. */
    13131313void cpu_abort(CPUState *env, const char *fmt, ...)
    13141314{
     
    14311431                                    ram_addr + TARGET_PAGE_SIZE,
    14321432                                    CODE_DIRTY_FLAG);
    1433 #if defined(VBOX) && defined(REM_MONITOR_CODE_PAGES)
     1433#ifdef VBOX && defined(REM_MONITOR_CODE_PAGES)
    14341434    /** @todo Retest this? This function has changed... */
    14351435    remR3ProtectCode(cpu_single_env, ram_addr);
     
    14971497    /* we modify the TLB cache so that the dirty bit will be set again
    14981498       when accessing the range */
    1499 #if !defined(VBOX) || !defined(PGM_DYNAMIC_RAM_ALLOC)
     1499#ifndef VBOX
    15001500    start1 = start + (unsigned long)phys_ram_base;
    15011501#else
     
    15471547    if ((tlb_entry->addr_write & ~TARGET_PAGE_MASK) == IO_MEM_RAM) {
    15481548        /* RAM case */
    1549 #if !defined(VBOX) || !defined(PGM_DYNAMIC_RAM_ALLOC)
     1549#ifndef VBOX
    15501550        ram_addr = (tlb_entry->addr_write & TARGET_PAGE_MASK) +
    15511551            tlb_entry->addend - (unsigned long)phys_ram_base;
     
    16331633            /* standard memory */
    16341634            address = vaddr;
    1635 #if !defined(VBOX) || !defined(PGM_DYNAMIC_RAM_ALLOC)
     1635#ifndef VBOX
    16361636            addend = (unsigned long)phys_ram_base + (pd & TARGET_PAGE_MASK);
    16371637#else
     
    18551855    if (flags & PAGE_WRITE)
    18561856        flags |= PAGE_WRITE_ORG;
    1857 #if defined(VBOX)
     1857#ifdef VBOX
    18581858    AssertMsgFailed(("We shouldn't be here, and if we should, we must have an env to do the proper locking!\n"));
    18591859#endif
     
    19501950        p = phys_page_find_alloc(addr >> TARGET_PAGE_BITS, 1);
    19511951        p->phys_offset = phys_offset;
    1952 #if !defined(VBOX) || !defined(PGM_DYNAMIC_RAM_ALLOC)
     1952#ifndef VBOX
    19531953        if ((phys_offset & ~TARGET_PAGE_MASK) <= IO_MEM_ROM ||
    19541954            (phys_offset & IO_MEM_ROMD))
     
    20122012    unsigned long ram_addr;
    20132013    int dirty_flags;
    2014 #if !defined(VBOX) || !defined(PGM_DYNAMIC_RAM_ALLOC)
     2014#ifndef VBOX
    20152015    ram_addr = addr - (unsigned long)phys_ram_base;
    20162016#else
     
    20552055    unsigned long ram_addr;
    20562056    int dirty_flags;
    2057 #if !defined(VBOX) || !defined(PGM_DYNAMIC_RAM_ALLOC)
     2057#ifndef VBOX
    20582058    ram_addr = addr - (unsigned long)phys_ram_base;
    20592059#else
     
    20982098    unsigned long ram_addr;
    20992099    int dirty_flags;
    2100 #if !defined(VBOX) || !defined(PGM_DYNAMIC_RAM_ALLOC)
     2100#ifndef VBOX
    21012101    ram_addr = addr - (unsigned long)phys_ram_base;
    21022102#else
     
    21542154    cpu_register_io_memory(IO_MEM_UNASSIGNED >> IO_MEM_SHIFT, unassigned_mem_read, unassigned_mem_write, NULL);
    21552155    cpu_register_io_memory(IO_MEM_NOTDIRTY >> IO_MEM_SHIFT, error_mem_read, notdirty_mem_write, NULL);
    2156 #if defined(VBOX) && defined(PGM_DYNAMIC_RAM_ALLOC)
     2156#ifdef VBOX
    21572157    cpu_register_io_memory(IO_MEM_RAM_MISSING >> IO_MEM_SHIFT, unassigned_mem_read, unassigned_mem_write, NULL);
    21582158    io_mem_nb = 6;
     
    22932293                /* RAM case */
    22942294#ifdef VBOX
    2295 # ifdef PGM_DYNAMIC_RAM_ALLOC
    22962295                ptr = remR3GCPhys2HCVirt(cpu_single_env, addr1);
    2297 # else
    2298                 ptr = phys_ram_base + addr1;
    2299 # endif
    23002296                remR3PhysWrite(ptr, buf, l);
    23012297#else
     
    23382334                /* RAM case */
    23392335#ifdef VBOX
    2340 # ifdef PGM_DYNAMIC_RAM_ALLOC
    23412336                ptr = remR3GCPhys2HCVirt(cpu_single_env, (pd & TARGET_PAGE_MASK) + (addr & ~TARGET_PAGE_MASK));
    2342 # else
    2343                 ptr = phys_ram_base + (pd & TARGET_PAGE_MASK) +
    2344                     (addr & ~TARGET_PAGE_MASK);
    2345 # endif
    23462337                remR3PhysRead(ptr, buf, l);
    23472338#else
     
    23892380            /* ROM/RAM case */
    23902381        /* RAM case */
    2391 #if !defined(VBOX) || !defined(PGM_DYNAMIC_RAM_ALLOC)
     2382#ifndef VBOX
    23922383            ptr = phys_ram_base + addr1;
    23932384#else
     
    24262417    } else {
    24272418        /* RAM case */
    2428 #if !defined(VBOX) || !defined(PGM_DYNAMIC_RAM_ALLOC)
     2419#ifndef VBOX
    24292420        ptr = phys_ram_base + (pd & TARGET_PAGE_MASK) +
    24302421            (addr & ~TARGET_PAGE_MASK);
     
    24662457    } else {
    24672458        /* RAM case */
    2468 #if !defined(VBOX) || !defined(PGM_DYNAMIC_RAM_ALLOC)
     2459#ifndef VBOX
    24692460        ptr = phys_ram_base + (pd & TARGET_PAGE_MASK) +
    24702461            (addr & ~TARGET_PAGE_MASK);
     
    25142505        io_mem_write[io_index][2](io_mem_opaque[io_index], addr, val);
    25152506    } else {
    2516 #if !defined(VBOX) || !defined(PGM_DYNAMIC_RAM_ALLOC)
     2507#ifndef VBOX
    25172508        ptr = phys_ram_base + (pd & TARGET_PAGE_MASK) +
    25182509            (addr & ~TARGET_PAGE_MASK);
     
    25462537        addr1 = (pd & TARGET_PAGE_MASK) + (addr & ~TARGET_PAGE_MASK);
    25472538        /* RAM case */
    2548 #if !defined(VBOX) || !defined(PGM_DYNAMIC_RAM_ALLOC)
     2539#ifndef VBOX
    25492540        ptr = phys_ram_base + addr1;
    25502541#else
  • trunk/src/recompiler/new/target-i386/helper2.c

    r1001 r1111  
    586586
    587587    /* page directory entry */
    588 # ifdef PGM_DYNAMIC_RAM_ALLOC
    589588    pde_ptr = remR3GCPhys2HCVirt(env, (((env->cr[3] & ~0xfff) + ((addr >> 20) & ~3)) & env->a20_mask));
    590 # else
    591     pde_ptr = phys_ram_base +
    592         (((env->cr[3] & ~0xfff) + ((addr >> 20) & ~3)) & env->a20_mask);
    593 # endif
    594589    pde = ldl_raw(pde_ptr);
    595590    /* if PSE bit is set, then we use a 4MB page */
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