Changeset 37689 in vbox for trunk/src/recompiler/dyngen-exec.h
- Timestamp:
- Jun 29, 2011 4:01:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/dyngen-exec.h
r37675 r37689 73 73 74 74 #if defined(__i386__) 75 # ifndef VBOX75 # ifndef VBOX 76 76 #define AREG0 "ebp" 77 #define AREG1 "ebx" 78 #define AREG2 "esi" 79 #else /* VBOX - why are we different? */ 80 # define AREG0 "esi" 81 # define AREG1 "edi" 82 #endif /* VBOX */ 77 # else /* VBOX - why are we different? frame-pointer optimizations on mac? */ 78 # define AREG0 "esi" 79 # endif /* VBOX */ 83 80 #elif defined(__x86_64__) 84 81 #define AREG0 "r14" 85 #define AREG1 "r15"86 #define AREG2 "r12"87 82 #elif defined(_ARCH_PPC) 88 83 #define AREG0 "r27" 89 #define AREG1 "r24"90 #define AREG2 "r25"91 84 #elif defined(__arm__) 92 85 #define AREG0 "r7" 93 #define AREG1 "r4"94 #define AREG2 "r5"95 86 #elif defined(__hppa__) 96 87 #define AREG0 "r17" 97 #define AREG1 "r14"98 #define AREG2 "r15"99 88 #elif defined(__mips__) 100 89 #define AREG0 "s0" 101 #define AREG1 "s1"102 #define AREG2 "fp"103 90 #elif defined(__sparc__) 104 91 #ifdef CONFIG_SOLARIS 105 92 #define AREG0 "g2" 106 #define AREG1 "g3"107 #define AREG2 "g4"108 93 #else 109 94 #ifdef __sparc_v9__ 110 95 #define AREG0 "g5" 111 #define AREG1 "g6"112 #define AREG2 "g7"113 96 #else 114 97 #define AREG0 "g6" 115 #define AREG1 "g1"116 #define AREG2 "g2"117 98 #endif 118 99 #endif 119 100 #elif defined(__s390__) 120 101 #define AREG0 "r10" 121 #define AREG1 "r7"122 #define AREG2 "r8"123 102 #elif defined(__alpha__) 124 103 /* Note $15 is the frame pointer, so anything in op-i386.c that would 125 104 require a frame pointer, like alloca, would probably loose. */ 126 105 #define AREG0 "$15" 127 #define AREG1 "$9"128 #define AREG2 "$10"129 106 #elif defined(__mc68000) 130 107 #define AREG0 "%a5" 131 #define AREG1 "%a4"132 #define AREG2 "%d7"133 108 #elif defined(__ia64__) 134 109 #define AREG0 "r7" 135 #define AREG1 "r4"136 #define AREG2 "r5"137 110 #else 138 111 #error unsupported CPU
Note:
See TracChangeset
for help on using the changeset viewer.