VirtualBox

Changeset 18601 in vbox


Ignore:
Timestamp:
Apr 1, 2009 3:22:31 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45507
Message:

REM: cleanup... no fix yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler_new/exec.c

    r18599 r18601  
    468468#else  /* VBOX */
    469469    /* level 0 lookup and lazy allocation of level 1 map. */
    470     if (RT_UNLIKELY(index >= (target_ulong)L2_SIZE * L1_SIZE * L0_SIZE))
     470    if (RT_UNLIKELY(index >= (target_phys_addr_t)L2_SIZE * L1_SIZE * L0_SIZE))
    471471        return NULL;
    472472    p = l0_phys_map[index >> (L1_BITS + L2_BITS)];
     
    474474        if (!alloc)
    475475            return NULL;
    476         p = qemu_vmalloc(sizeof(PhysPageDesc **) * L0_SIZE);
    477         memset(p, 0, sizeof(PhysPageDesc **) * L0_SIZE);
    478         l0_phys_map[index >> (L1_BITS + L2_BITS)] = (PhysPageDesc **)p;
     476        p = qemu_vmalloc(sizeof(void **) * L0_SIZE);
     477        memset(p, 0, sizeof(void **) * L0_SIZE);
     478        l0_phys_map[index >> (L1_BITS + L2_BITS)] = p;
    479479    }
    480480
Note: See TracChangeset for help on using the changeset viewer.

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