- Timestamp:
- Oct 17, 2008 11:58:09 AM (16 years ago)
- Location:
- trunk/src/recompiler_new
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler_new/Makefile.kmk
r13359 r13370 43 43 $(REM_MOD)_DEFS = IN_REM_R3 REM_INCLUDE_CPU_H 44 44 $(REM_MOD)_DEFS += REM_PHYS_ADDR_IN_TLB 45 #$(REM_MOD)_DEFS += DEBUG_ALL_LOGGING DEBUG_DISAS DEBUG_PCALL DEBUG_EXEC DEBUG_FLUSH DEBUG_IOPORT DEBUG_SIGNAL DEBUG_TLB_CHECK DEBUG_TB_INVALIDATE DEBUG_TLB # Enables huge amounts of debug logging.46 $(REM_MOD)_DEFS.linux = _GNU_SOURCE45 #$(REM_MOD)_DEFS += DEBUG_ALL_LOGGING DEBUG_DISAS DEBUG_PCALL DEBUG_EXEC DEBUG_FLUSH DEBUG_IOPORT DEBUG_SIGNAL DEBUG_TLB_CHECK DEBUG_TB_INVALIDATE DEBUG_TLB # Enables huge amounts of debug logging. 46 $(REM_MOD)_DEFS.linux = _GNU_SOURCE 47 47 ifdef VBOX_SOLARIS_10 48 48 $(REM_MOD)_DEFS.solaris = HOST_SOLARIS=10 … … 50 50 $(REM_MOD)_DEFS.solaris = HOST_SOLARIS=11 51 51 endif 52 $(REM_MOD)_DEFS.solaris += 52 53 53 54 $(REM_MOD)_INCS = \ 54 55 Sun \ 55 Sun/crt \56 56 target-i386 \ 57 57 tcg \ … … 76 76 77 77 ifeq ($(KBUILD_TARGET_ARCH),amd64) 78 $(REM_MOD)_DEFS += __x86_64__ 78 79 $(REM_MOD)_INCS += tcg/x86_64 79 80 else 81 $(REM_MOD)_DEFS += __i386__ 80 82 $(REM_MOD)_INCS += tcg/i386 81 83 endif … … 89 91 endif 90 92 91 $(REM_MOD)_CFLAGS.linux += -Wno-unused 93 # gcc targets 94 if1of ($(KBUILD_TARGET), linux darwin solaris) 92 95 $(REM_MOD)_CFLAGS.debug = -O0 93 $(REM_MOD)_CFLAGS.release += -fomit-frame-pointer -fno-gcse 96 $(REM_MOD)_CFLAGS.release += -fomit-frame-pointer -fno-gcse 97 endif 94 98 $(REM_MOD)_CFLAGS.profile = $($(REM_MOD)_CFLAGS.release) 95 99 $(REM_MOD)_CFLAGS.kprofile = $($(REM_MOD)_CFLAGS.release) 96 100 97 $(REM_MOD)_DEFS += IN_RING3 LOG_USE_C99$(ARCH_BITS_DEFS)101 $(REM_MOD)_DEFS += IN_RING3 $(ARCH_BITS_DEFS) 98 102 #$(REM_MOD)_DEFS += DEBUG_DISAS DEBUG_PCALL DEBUG_EXEC DEBUG_FLUSH DEBUG_IOPORT DEBUG_SIGNAL DEBUG_TLB_CHECK DEBUG_TB_INVALIDATE DEBUG_TLB # Enables huge amounts of debug logging. 99 103 … … 110 114 111 115 116 if1of ($(KBUILD_TARGET), linux darwin solaris) 112 117 # Extra flags for these source modules. 113 118 target-i386/op-helper.c_CFLAGS.x86 = -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-gcse 114 119 cpu-exec.c_CFLAGS.x86 = -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-gcse 115 120 cpu-exec.c_CFLAGS.solaris.amd64 = -O2 -fomit-frame-pointer -fno-strict-aliasing 116 121 endif 117 122 118 123 # -
trunk/src/recompiler_new/cpu-defs.h
r13358 r13370 32 32 #include "config.h" 33 33 #include <setjmp.h> 34 #ifndef VBOX 34 35 #include <inttypes.h> 36 #endif 35 37 #include "osdep.h" 36 38 -
trunk/src/recompiler_new/fpu/softfloat-native.h
r13359 r13370 4 4 #if (defined(_BSD) && !defined(__APPLE__)) || defined(HOST_SOLARIS) 5 5 #include <ieeefp.h> 6 #define fabsf(f) ((float)fabs(f)) 7 #elif defined(_MSC_VER) 8 #include <fpieee.h> 6 9 #define fabsf(f) ((float)fabs(f)) 7 10 #else … … 34 37 #define isinf(x) ((fpclass(x) == FP_NINF) || (fpclass(x) == FP_PINF)) 35 38 39 #elif defined(_MSC_VER) 40 #include <float.h> 41 #define unordered(x1, x2) ((_fpclass(x1) <= 2) || (_fpclass(x2) <= 2)) 42 #define isless(x, y) ((!unordered(x, y)) && ((x) < (y))) 43 #define islessequal(x, y) ((!unordered(x, y)) && ((x) <= (y))) 44 #define isunordered(x,y) unordered(x, y) 36 45 #endif 37 46 … … 77 86 float_round_to_zero = 3 78 87 }; 88 #elif defined(_MSC_VER) 89 enum { 90 float_round_nearest_even = _FpRoundNearest, 91 float_round_down = _FpRoundMinusInfinity, 92 float_round_up = _FpRoundPlusInfinity, 93 float_round_to_zero = _FpRoundChopped 94 }; 79 95 #else 80 96 enum { -
trunk/src/recompiler_new/fpu/softfloat.h
r1 r13370 33 33 #define SOFTFLOAT_H 34 34 35 #ifdef VBOX 36 #ifndef _MSC_VER 35 37 #include <inttypes.h> 38 #endif 39 #endif 36 40 #include "config.h" 37 41 … … 70 74 71 75 #define LIT64( a ) a##LL 76 #ifdef _MSC_VER 77 #define INLINE 78 #else 72 79 #define INLINE static inline 80 #endif 73 81 74 82 /*---------------------------------------------------------------------------- -
trunk/src/recompiler_new/osdep.h
r13359 r13370 9 9 #include <iprt/string.h> 10 10 11 #ifndef _MSC_VER 11 12 #define qemu_snprintf(pszBuf, cbBuf, ...) RTStrPrintf((pszBuf), (cbBuf), __VA_ARGS__) 13 #else 14 #define qemu_snprintf RTStrPrintf 15 #endif 12 16 #define qemu_vsnprintf(pszBuf, cbBuf, pszFormat, args) \ 13 17 RTStrPrintfV((pszBuf), (cbBuf), (pszFormat), (args)) -
trunk/src/recompiler_new/vl.h
r2422 r13370 30 30 #include <stdarg.h> 31 31 #include <string.h> 32 #ifndef VBOX 32 33 #include <inttypes.h> 33 #ifndef VBOX34 34 #include <limits.h> 35 35 #include <time.h>
Note:
See TracChangeset
for help on using the changeset viewer.