Changeset 18601 in vbox
- Timestamp:
- Apr 1, 2009 3:22:31 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 45507
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler_new/exec.c
r18599 r18601 468 468 #else /* VBOX */ 469 469 /* 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)) 471 471 return NULL; 472 472 p = l0_phys_map[index >> (L1_BITS + L2_BITS)]; … … 474 474 if (!alloc) 475 475 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; 479 479 } 480 480
Note:
See TracChangeset
for help on using the changeset viewer.