Changeset 18349 in vbox for trunk/src/recompiler_new
- Timestamp:
- Mar 26, 2009 7:48:09 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 45133
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler_new/exec.c
r17420 r18349 182 182 #define L1_BITS (TARGET_VIRT_ADDR_SPACE_BITS - L2_BITS - TARGET_PAGE_BITS) 183 183 #else 184 # ifdef VBOX /* > 4GB please. */ 185 #define L1_BITS (TARGET_PHYS_ADDR_SPACE_BITS - L2_BITS - TARGET_PAGE_BITS) 186 # else 184 187 #define L1_BITS (32 - L2_BITS - TARGET_PAGE_BITS) 188 # endif 185 189 #endif 186 190 … … 348 352 /* Host memory outside guest VM. For 32-bit targets we have already 349 353 excluded high addresses. */ 354 # ifndef VBOX 350 355 if (index > ((target_ulong)L2_SIZE * L1_SIZE)) 351 356 return NULL; 357 # else /* VBOX */ 358 AssertMsgReturn(index < (target_ulong)L2_SIZE * L1_SIZE, 359 ("index=%RGp >= %RGp; L1_SIZE=%#x L2_SIZE=%#x\n", 360 (RTGCPHYS)index, (RTGCPHYS)L2_SIZE * L1_SIZE, L1_SIZE, L2_SIZE), 361 NULL); 362 # endif /* VBOX */ 363 352 364 #endif 353 365 return &l1_map[index >> L2_BITS];
Note:
See TracChangeset
for help on using the changeset viewer.