VirtualBox

Changeset 18349 in vbox for trunk/src/recompiler_new


Ignore:
Timestamp:
Mar 26, 2009 7:48:09 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45133
Message:

REM: Corrected L1_BITS (crashed in tb_alloc_page during ubuntu 8.10/64 boot with ~11GBs ).

File:
1 edited

Legend:

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

    r17420 r18349  
    182182#define L1_BITS (TARGET_VIRT_ADDR_SPACE_BITS - L2_BITS - TARGET_PAGE_BITS)
    183183#else
     184# ifdef VBOX /* > 4GB please. */
     185#define L1_BITS (TARGET_PHYS_ADDR_SPACE_BITS - L2_BITS - TARGET_PAGE_BITS)
     186# else
    184187#define L1_BITS (32 - L2_BITS - TARGET_PAGE_BITS)
     188# endif
    185189#endif
    186190
     
    348352    /* Host memory outside guest VM.  For 32-bit targets we have already
    349353       excluded high addresses.  */
     354# ifndef VBOX
    350355    if (index > ((target_ulong)L2_SIZE * L1_SIZE))
    351356        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
    352364#endif
    353365    return &l1_map[index >> L2_BITS];
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