VirtualBox

Changeset 1587 in vbox for trunk/src


Ignore:
Timestamp:
Mar 20, 2007 9:50:22 PM (18 years ago)
Author:
vboxsync
Message:

Fixed reference to uninitialized env. Use first_cpu instead of cpu_single_env when all we really need pVM.

File:
1 edited

Legend:

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

    r1182 r1587  
    15011501    start1 = start + (unsigned long)phys_ram_base;
    15021502#else
    1503     start1 = (unsigned long)remR3GCPhys2HCVirt(env, start);
     1503    start1 = (unsigned long)remR3GCPhys2HCVirt(first_cpu, start);
    15041504#endif
    15051505    for(env = first_cpu; env != NULL; env = env->next_cpu) {
     
    15521552            tlb_entry->addend - (unsigned long)phys_ram_base;
    15531553#else
    1554         ram_addr = remR3HCVirt2GCPhys(cpu_single_env, (tlb_entry->addr_write & TARGET_PAGE_MASK) + tlb_entry->addend); /** @todo check if this is right! */
     1554        ram_addr = remR3HCVirt2GCPhys(first_cpu, (tlb_entry->addr_write & TARGET_PAGE_MASK) + tlb_entry->addend); /** @todo check if this is right! */
    15551555#endif
    15561556        if (!cpu_physical_memory_is_dirty(ram_addr)) {
     
    20162016    ram_addr = addr - (unsigned long)phys_ram_base;
    20172017#else
    2018     ram_addr = remR3HCVirt2GCPhys(cpu_single_env, (void *)addr);
     2018    ram_addr = remR3HCVirt2GCPhys(first_cpu, (void *)addr);
    20192019#endif
    20202020#ifdef VBOX
     
    20592059    ram_addr = addr - (unsigned long)phys_ram_base;
    20602060#else
    2061     ram_addr = remR3HCVirt2GCPhys(cpu_single_env, (void *)addr);
     2061    ram_addr = remR3HCVirt2GCPhys(first_cpu, (void *)addr);
    20622062#endif
    20632063#ifdef VBOX
     
    21022102    ram_addr = addr - (unsigned long)phys_ram_base;
    21032103#else
    2104     ram_addr = remR3HCVirt2GCPhys(cpu_single_env, (void *)addr);
     2104    ram_addr = remR3HCVirt2GCPhys(first_cpu, (void *)addr);
    21052105#endif
    21062106#ifdef VBOX
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