Changeset 13384
- Timestamp:
- 10/20/08 01:01:08 (3 months ago)
- Files:
-
- trunk/src/recompiler_new/Makefile.kmk (modified) (1 diff)
- trunk/src/recompiler_new/dyngen-exec.h (modified) (2 diffs)
- trunk/src/recompiler_new/elf.h (modified) (1 diff)
- trunk/src/recompiler_new/fpu/softfloat-native.c (modified) (1 diff)
- trunk/src/recompiler_new/fpu/softfloat.h (modified) (1 diff)
- trunk/src/recompiler_new/osdep.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/recompiler_new/Makefile.kmk
r13383 r13384 26 26 REM_MOD += VBoxREM 27 27 DLLS += VBoxREM 28 IMPORT_LIBS += VBoxREMImp29 28 30 29 DEFS += VBOX_WITH_NEW_RECOMPILER trunk/src/recompiler_new/dyngen-exec.h
r13357 r13384 227 227 #endif 228 228 229 #ifndef VBOX 229 230 /* force GCC to generate only one epilog at the end of the function */ 230 231 #define FORCE_RET() __asm__ __volatile__("" : : : "memory"); 232 #endif 231 233 232 234 #ifndef OPPROTO … … 314 316 315 317 318 #ifdef VBOX 319 #define GETPC() ASMReturnAddress() 320 #elif defined(__s390__) 316 321 /* The return address may point to the start of the next instruction. 317 322 Subtracting one gets us the call instruction itself. */ 318 #if defined(__s390__)319 323 # define GETPC() ((void*)(((unsigned long)__builtin_return_address(0) & 0x7fffffffUL) - 1)) 320 324 #elif defined(__arm__) trunk/src/recompiler_new/elf.h
r2422 r13384 1 1 #ifndef _QEMU_ELF_H 2 2 #define _QEMU_ELF_H 3 4 #include <inttypes.h>5 3 6 4 /* 32-bit ELF base types. */ trunk/src/recompiler_new/fpu/softfloat-native.c
r3888 r13384 88 88 /* XXX: this code implements the x86 behaviour, not the IEEE one. */ 89 89 #if HOST_LONG_BITS == 32 90 #ifndef VBOX 90 91 static inline int long_to_int32(long a) 92 #else /* VBOX */ 93 DECLINLINE(int) long_to_int32(long a) 94 #endif /* VBOX */ 91 95 { 92 96 return a; 93 97 } 94 98 #else 99 #ifndef VBOX 95 100 static inline int long_to_int32(long a) 101 #else /* VBOX */ 102 DECLINLINE(int) long_to_int32(long a) 103 #endif /* VBOX */ 96 104 { 97 105 if (a != (int32_t)a) trunk/src/recompiler_new/fpu/softfloat.h
r13370 r13384 34 34 35 35 #ifdef VBOX 36 #ifndef _MSC_VER 37 #include <inttypes.h> 38 #endif 36 #include <VBox/types.h> 39 37 #endif 40 38 #include "config.h" trunk/src/recompiler_new/osdep.h
r13382 r13384 158 158 #define RESTORE_GLOBAL_REGISTER(reg, var) 159 159 #define DECLALWAYSINLINE(type) DECLINLINE(type) 160 #define FORCE_RET() ; 160 161 #else /* ! _MSC_VER */ 161 162 #define ALIGNED_MEMBER(type, name, bytes) type name __attribute__((aligned(bytes))) … … 166 167 #define RESTORE_GLOBAL_REGISTER(reg, var) __asm__ __volatile__ ("" : : "r" (var)) 167 168 #define DECLALWAYSINLINE(type) static always_inline type 169 #define FORCE_RET() __asm__ __volatile__("" : : : "memory"); 168 170 #endif /* !_MSC_VER */ 169 171 #endif /* VBOX */

