VirtualBox

Changeset 13370 in vbox for trunk/src


Ignore:
Timestamp:
Oct 17, 2008 11:58:09 AM (16 years ago)
Author:
vboxsync
Message:

MSVC related changes

Location:
trunk/src/recompiler_new
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler_new/Makefile.kmk

    r13359 r13370  
    4343$(REM_MOD)_DEFS             = IN_REM_R3 REM_INCLUDE_CPU_H
    4444$(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_SOURCE
     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_SOURCE
    4747ifdef VBOX_SOLARIS_10
    4848 $(REM_MOD)_DEFS.solaris = HOST_SOLARIS=10
     
    5050 $(REM_MOD)_DEFS.solaris = HOST_SOLARIS=11
    5151endif
     52$(REM_MOD)_DEFS.solaris +=
    5253
    5354$(REM_MOD)_INCS             =     \
    5455        Sun                       \
    55         Sun/crt                   \
    5656        target-i386               \
    5757        tcg                       \
     
    7676
    7777ifeq ($(KBUILD_TARGET_ARCH),amd64)
     78 $(REM_MOD)_DEFS             += __x86_64__
    7879 $(REM_MOD)_INCS             +=  tcg/x86_64
    7980else
     81 $(REM_MOD)_DEFS             += __i386__
    8082 $(REM_MOD)_INCS             +=  tcg/i386
    8183endif
     
    8991endif
    9092
    91 $(REM_MOD)_CFLAGS.linux    += -Wno-unused
     93# gcc targets
     94if1of ($(KBUILD_TARGET), linux darwin solaris)
    9295$(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
     97endif
    9498$(REM_MOD)_CFLAGS.profile  = $($(REM_MOD)_CFLAGS.release)
    9599$(REM_MOD)_CFLAGS.kprofile = $($(REM_MOD)_CFLAGS.release)
    96100
    97 $(REM_MOD)_DEFS           += IN_RING3 LOG_USE_C99 $(ARCH_BITS_DEFS)
     101$(REM_MOD)_DEFS           += IN_RING3 $(ARCH_BITS_DEFS)
    98102#$(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.
    99103
     
    110114
    111115
     116if1of ($(KBUILD_TARGET), linux darwin solaris)
    112117# Extra flags for these source modules.
    113118target-i386/op-helper.c_CFLAGS.x86 = -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-gcse
    114119cpu-exec.c_CFLAGS.x86           = -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-gcse
    115120cpu-exec.c_CFLAGS.solaris.amd64 = -O2 -fomit-frame-pointer -fno-strict-aliasing
    116 
     121endif
    117122
    118123#
  • trunk/src/recompiler_new/cpu-defs.h

    r13358 r13370  
    3232#include "config.h"
    3333#include <setjmp.h>
     34#ifndef VBOX
    3435#include <inttypes.h>
     36#endif
    3537#include "osdep.h"
    3638
  • trunk/src/recompiler_new/fpu/softfloat-native.h

    r13359 r13370  
    44#if (defined(_BSD) && !defined(__APPLE__)) || defined(HOST_SOLARIS)
    55#include <ieeefp.h>
     6#define fabsf(f) ((float)fabs(f))
     7#elif defined(_MSC_VER)
     8#include <fpieee.h>
    69#define fabsf(f) ((float)fabs(f))
    710#else
     
    3437#define isinf(x)                ((fpclass(x) == FP_NINF) || (fpclass(x) == FP_PINF))
    3538
     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)
    3645#endif
    3746
     
    7786    float_round_to_zero      = 3
    7887};
     88#elif defined(_MSC_VER)
     89enum {
     90    float_round_nearest_even = _FpRoundNearest,
     91    float_round_down         = _FpRoundMinusInfinity,
     92    float_round_up           = _FpRoundPlusInfinity,
     93    float_round_to_zero      = _FpRoundChopped
     94};
    7995#else
    8096enum {
  • trunk/src/recompiler_new/fpu/softfloat.h

    r1 r13370  
    3333#define SOFTFLOAT_H
    3434
     35#ifdef VBOX
     36#ifndef _MSC_VER
    3537#include <inttypes.h>
     38#endif
     39#endif
    3640#include "config.h"
    3741
     
    7074
    7175#define LIT64( a ) a##LL
     76#ifdef _MSC_VER
     77#define INLINE
     78#else
    7279#define INLINE static inline
     80#endif
    7381
    7482/*----------------------------------------------------------------------------
  • trunk/src/recompiler_new/osdep.h

    r13359 r13370  
    99#include <iprt/string.h>
    1010
     11#ifndef _MSC_VER
    1112#define qemu_snprintf(pszBuf, cbBuf, ...) RTStrPrintf((pszBuf), (cbBuf), __VA_ARGS__)
     13#else
     14#define qemu_snprintf RTStrPrintf
     15#endif
    1216#define qemu_vsnprintf(pszBuf, cbBuf, pszFormat, args) \
    1317                            RTStrPrintfV((pszBuf), (cbBuf), (pszFormat), (args))
  • trunk/src/recompiler_new/vl.h

    r2422 r13370  
    3030#include <stdarg.h>
    3131#include <string.h>
     32#ifndef VBOX
    3233#include <inttypes.h>
    33 #ifndef VBOX
    3434#include <limits.h>
    3535#include <time.h>
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