VirtualBox

Changeset 13726

Show
Ignore:
Timestamp:
10/31/08 20:30:54 (2 months ago)
Author:
vboxsync
Message:

Some 32-bit work, not yet working

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/recompiler_new/Makefile.kmk

    r13652 r13726  
    115115if1of ($(KBUILD_TARGET), linux darwin solaris) 
    116116# Extra flags for these source modules. 
    117 target-i386/op-helper.c_CFLAGS.x86 = -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-gcse 
    118 cpu-exec.c_CFLAGS.x86           = -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-gcse 
    119 cpu-exec.c_CFLAGS.solaris.amd64 = -O2 -fomit-frame-pointer -fno-strict-aliasing 
     117target-i386/op-helper.c_CFLAGS.x86 = -O2 -fno-strict-aliasing -fno-gcse 
     118cpu-exec.c_CFLAGS.x86           = -O2 -fno-strict-aliasing -fno-gcse 
     119cpu-exec.c_CFLAGS.solaris.amd64 = -O2 -fno-strict-aliasing 
    120120endif 
    121121 
  • trunk/src/recompiler_new/cpu-exec.c

    r13569 r13726  
    262262    uint8_t *tc_ptr; 
    263263    unsigned long next_tb; 
    264  
    265 #ifndef VBOX 
    266     if (cpu_halted(env1) == EXCP_HALTED) 
    267         return EXCP_HALTED; 
    268 #endif 
    269264 
    270265    cpu_single_env = env1; 
  • trunk/src/recompiler_new/dyngen-exec.h

    r13649 r13726  
    114114 
    115115#ifdef __i386__ 
     116#ifndef VBOX 
    116117#define AREG0 "ebp" 
    117118#define AREG1 "ebx" 
    118119#define AREG2 "esi" 
    119120#define AREG3 "edi" 
     121#else 
     122#define AREG0 "esi" 
     123#define AREG1 "edi" 
     124#endif 
    120125#endif 
    121126#ifdef __x86_64__ 
    122127#if defined(VBOX)  
    123 /* gcc 3.4.3 on 64-bit Solaris screws up when using rbp, it  
    124    seems so at least. (Setting AREG4 to "r15" causes compiler  
    125    error btw, so don't try it.)  */ 
    126128/* Must be in sync with TCG register notion, see tcg-target.h */ 
     129#endif 
    127130#define AREG0 "r14" 
    128131#define AREG1 "r15" 
    129132#define AREG2 "r12" 
    130133#define AREG3 "r13" 
    131 #else 
    132 #define AREG0 "r14" 
    133 #define AREG1 "r15" 
    134 #define AREG2 "r12" 
    135 #define AREG3 "r13" 
    136 #endif  
    137 //#define AREG4 "r14" 
    138 //#define AREG5 "r15" 
    139134#endif 
    140135#ifdef __powerpc__ 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy