VirtualBox

Changeset 14447

Show
Ignore:
Timestamp:
11/21/08 10:58:22 (2 months ago)
Author:
vboxsync
Message:

New REM compiles on Win/AMD64 (using wrapper yet), not tested if runs

Files:

Legend:

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

    r14418 r14447  
    2323include $(KBUILD_PATH)/subheader.kmk 
    2424 
     25# For 64-bit Windows we currently use gcc (due to MSVC unaware of such a novel  
     26# thing as C99, a lot of GCC extensions deployed by QEMU 
     27# and calling convention differences) to cross-compile code to Linux/ELF  
     28# and generate invocation wrappers. 
     29if1of (win.amd64, $(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) 
     30 REM_MOD              += VBoxREM2 
     31 SYSMODS              += VBoxREM2 
     32 DLLS                 += VBoxREM 
     33# IMPORT_LIBS          += VBoxREMImp 
     34else 
     35 REM_MOD              += VBoxREM 
     36 IMPORT_LIBS          += VBoxREM 
     37endif 
    2538 
    26 REM_MOD              += VBoxREM 
    27 #DLLS                 += VBoxREM 
    28 IMPORT_LIBS          += VBoxREM 
    29  
    30 $(REM_MOD)_TEMPLATE  = VBOXR3NP 
     39ifeq ($(KBUILD_TARGET), win) 
     40 TEMPLATE_DUMMY = dummy template (move to kBuild) 
     41 $(REM_MOD)_TOOL.win.x86    = MINGW32 
     42 $(REM_MOD)_TOOL.win.amd64  = XGCCAMD64LINUX 
     43 $(REM_MOD)_TEMPLATE        = DUMMY 
     44 $(REM_MOD)_SDKS.win.x86    = W32API 
     45 $(REM_MOD)_ASFLAGS         = -x assembler-with-cpp 
     46 $(REM_MOD)_CFLAGS          = -Wall -g 
     47 $(REM_MOD)_CFLAGS.debug    = -O0 
     48 $(REM_MOD)_CFLAGS.release += -fomit-frame-pointer -fno-gcse -O2 
     49 $(REM_MOD)_CFLAGS.profile  = $($(REM_MOD)_CFLAGS.release) 
     50 $(REM_MOD)_CFLAGS.kprofile = $($(REM_MOD)_CFLAGS.release) 
     51else 
     52 $(REM_MOD)_TEMPLATE  = VBOXR3NP 
     53endif 
    3154 
    3255OTHER_CLEAN          +=  
     
    81104endif 
    82105 
    83  
    84 $(REM_MOD)_SOURCES.debug = \ 
     106$(REM_MOD)_SOURCES.debug += \ 
    85107        Sun/testmath.c 
    86108$(REM_MOD)_SOURCES.win.x86  = $(REM_MOD).def 
    87109ifneq ($(REM_MOD),VBoxREM2) 
    88110 $(REM_MOD)_POST_CMDS       = $(VBOX_SIGN_IMAGE_CMDS) 
     111endif 
     112 
     113ifeq ($(REM_MOD),VBoxREM2) 
     114# 
     115# The VBoxREM2 wrapper. 
     116# 
     117VBoxREM_TEMPLATE       = VBOXR3 
     118VBoxREM_DEFS           = IN_REM_R3 $(if $(VBOX_WITH_VMI),VBOX_WITH_VMI,) 
     119VBoxREM_SOURCES        =   \ 
     120        VBoxREMWrapper.cpp \ 
     121        VBoxREMWrapperA.asm 
     122VBoxREM_LIBS           =   \ 
     123        $(LIB_VMM)         \ 
     124        $(LIB_RUNTIME) 
     125 
     126$(REM_MOD)_TEMPLATE        = VBOXNOCRTGAS 
     127$(REM_MOD)_DEFS           += LOG_USE_C99 $(ARCH_BITS_DEFS) 
     128$(REM_MOD)_CFLAGS.amd64    = -O2 
     129$(REM_MOD)_CFLAGS.debug    = -O0 
     130 
     131# This doesn't fit in IPRT because it requires GAS and is LGPL. 
     132$(REM_MOD)_SOURCES        += \ 
     133        Sun/e_powl-$(KBUILD_TARGET_ARCH).S 
     134 
     135$(REM_MOD)_INCS           += \ 
     136        Sun/crt 
     137$(REM_MOD)_LIBS           = \ 
     138        $(PATH_LIB)/RuntimeR3NoCRTGCC$(VBOX_SUFF_LIB) 
     139$(REM_MOD)_SYSSUFF        = .rel 
     140 
    89141endif 
    90142 
     
    109161#$(REM_MOD)_LIBS           =    \ 
    110162        $(LIB_VMM)              \ 
    111         $(LIB_RUNTIME) 
     163        $(LIB_RUNTIME) 
     164 
    112165 
    113166 
  • trunk/src/recompiler_new/fpu/softfloat-native.h

    r13370 r14447  
    33 
    44#if (defined(_BSD) && !defined(__APPLE__)) || defined(HOST_SOLARIS) 
    5 #include <ieeefp.h> 
    6 #define fabsf(f) ((float)fabs(f)) 
     5# include <ieeefp.h> 
     6# define fabsf(f) ((float)fabs(f)) 
    77#elif defined(_MSC_VER) 
    8 #include <fpieee.h> 
    9 #define fabsf(f) ((float)fabs(f)) 
     8# include <fpieee.h> 
     9# ifndef fabsf 
     10#  define fabsf(f) ((float)fabs(f)) 
     11# endif 
    1012#else 
    11 #include <fenv.h> 
     13# include <fenv.h> 
    1214#endif 
    1315 
  • trunk/src/recompiler_new/osdep.h

    r13968 r14447  
    55 
    66#include <iprt/alloc.h> 
    7 #include <iprt/alloca.h> 
    87#include <iprt/stdarg.h> 
    98#include <iprt/string.h> 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy