VirtualBox

Changeset 13384

Show
Ignore:
Timestamp:
10/20/08 01:01:08 (3 months ago)
Author:
vboxsync
Message:

more MSC stuff

Files:

Legend:

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

    r13383 r13384  
    2626REM_MOD              += VBoxREM 
    2727DLLS                 += VBoxREM 
    28 IMPORT_LIBS          += VBoxREMImp 
    2928 
    3029DEFS                 += VBOX_WITH_NEW_RECOMPILER 
  • trunk/src/recompiler_new/dyngen-exec.h

    r13357 r13384  
    227227#endif 
    228228 
     229#ifndef VBOX 
    229230/* force GCC to generate only one epilog at the end of the function */ 
    230231#define FORCE_RET() __asm__ __volatile__("" : : : "memory"); 
     232#endif 
    231233 
    232234#ifndef OPPROTO 
     
    314316 
    315317 
     318#ifdef VBOX 
     319#define GETPC() ASMReturnAddress()  
     320#elif defined(__s390__) 
    316321/* The return address may point to the start of the next instruction. 
    317322   Subtracting one gets us the call instruction itself.  */ 
    318 #if defined(__s390__) 
    319323# define GETPC() ((void*)(((unsigned long)__builtin_return_address(0) & 0x7fffffffUL) - 1)) 
    320324#elif defined(__arm__) 
  • trunk/src/recompiler_new/elf.h

    r2422 r13384  
    11#ifndef _QEMU_ELF_H 
    22#define _QEMU_ELF_H 
    3  
    4 #include <inttypes.h> 
    53 
    64/* 32-bit ELF base types. */ 
  • trunk/src/recompiler_new/fpu/softfloat-native.c

    r3888 r13384  
    8888/* XXX: this code implements the x86 behaviour, not the IEEE one.  */ 
    8989#if HOST_LONG_BITS == 32 
     90#ifndef VBOX 
    9091static inline int long_to_int32(long a) 
     92#else /* VBOX */ 
     93DECLINLINE(int) long_to_int32(long a) 
     94#endif /* VBOX */ 
    9195{ 
    9296    return a; 
    9397} 
    9498#else 
     99#ifndef VBOX 
    95100static inline int long_to_int32(long a) 
     101#else /* VBOX */ 
     102DECLINLINE(int) long_to_int32(long a) 
     103#endif /* VBOX */ 
    96104{ 
    97105    if (a != (int32_t)a)  
  • trunk/src/recompiler_new/fpu/softfloat.h

    r13370 r13384  
    3434 
    3535#ifdef VBOX 
    36 #ifndef _MSC_VER 
    37 #include <inttypes.h> 
    38 #endif 
     36#include <VBox/types.h> 
    3937#endif 
    4038#include "config.h" 
  • trunk/src/recompiler_new/osdep.h

    r13382 r13384  
    158158#define RESTORE_GLOBAL_REGISTER(reg, var) 
    159159#define DECLALWAYSINLINE(type) DECLINLINE(type) 
     160#define FORCE_RET() ; 
    160161#else /* ! _MSC_VER */ 
    161162#define ALIGNED_MEMBER(type, name, bytes) type name __attribute__((aligned(bytes))) 
     
    166167#define RESTORE_GLOBAL_REGISTER(reg, var) __asm__ __volatile__ ("" : : "r" (var)) 
    167168#define DECLALWAYSINLINE(type) static always_inline type 
     169#define FORCE_RET() __asm__ __volatile__("" : : : "memory"); 
    168170#endif /* !_MSC_VER */ 
    169171#endif /* VBOX */ 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy