Changeset 36125 in vbox for trunk/src/recompiler/tcg/i386
- Timestamp:
- Mar 1, 2011 4:49:42 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70290
- Location:
- trunk/src/recompiler/tcg/i386
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/tcg/i386/tcg-target.c
r33540 r36125 84 84 85 85 /* maximum number of register used for input function arguments */ 86 #ifndef VBOX87 86 static inline int tcg_target_get_call_iarg_regs_count(int flags) 88 #else /* VBOX */89 DECLINLINE(int) tcg_target_get_call_iarg_regs_count(int flags)90 #endif /* VBOX */91 87 { 92 88 flags &= TCG_CALL_TYPE_MASK; … … 159 155 160 156 /* test if a constant matches the constraint */ 161 #ifndef VBOX162 157 static inline int tcg_target_const_match(tcg_target_long val, 163 #else /* VBOX */164 DECLINLINE(int) tcg_target_const_match(tcg_target_long val,165 #endif /* VBOX */166 158 const TCGArgConstraint *arg_ct) 167 159 { … … 236 228 #endif 237 229 238 #ifndef VBOX239 230 static inline void tcg_out_opc(TCGContext *s, int opc) 240 #else /* VBOX */241 DECLINLINE(void) tcg_out_opc(TCGContext *s, int opc)242 #endif /* VBOX */243 231 { 244 232 if (opc & P_EXT) … … 247 235 } 248 236 249 #ifndef VBOX250 237 static inline void tcg_out_modrm(TCGContext *s, int opc, int r, int rm) 251 #else /* VBOX */252 DECLINLINE(void) tcg_out_modrm(TCGContext *s, int opc, int r, int rm)253 #endif /* VBOX */254 238 { 255 239 tcg_out_opc(s, opc); … … 258 242 259 243 /* rm == -1 means no register index */ 260 #ifndef VBOX261 244 static inline void tcg_out_modrm_offset(TCGContext *s, int opc, int r, int rm, 262 #else /* VBOX */263 DECLINLINE(void) tcg_out_modrm_offset(TCGContext *s, int opc, int r, int rm,264 #endif /* VBOX */265 245 int32_t offset) 266 246 { … … 295 275 } 296 276 297 #ifndef VBOX298 277 static inline void tcg_out_mov(TCGContext *s, int ret, int arg) 299 #else /* VBOX */300 DECLINLINE(void) tcg_out_mov(TCGContext *s, int ret, int arg)301 #endif /* VBOX */302 278 { 303 279 if (arg != ret) … … 305 281 } 306 282 307 #ifndef VBOX308 283 static inline void tcg_out_movi(TCGContext *s, TCGType type, 309 #else /* VBOX */310 DECLINLINE(void) tcg_out_movi(TCGContext *s, TCGType type,311 #endif /* VBOX */312 284 int ret, int32_t arg) 313 285 { … … 321 293 } 322 294 323 #ifndef VBOX324 295 static inline void tcg_out_push(TCGContext *s, int reg) 325 #else /* VBOX */326 DECLINLINE(void) tcg_out_push(TCGContext *s, int reg)327 #endif /* VBOX */328 296 { 329 297 tcg_out_opc(s, 0x50 + reg); 330 298 } 331 299 332 #ifndef VBOX333 300 static inline void tcg_out_pop(TCGContext *s, int reg) 334 #else /* VBOX */335 DECLINLINE(void) tcg_out_pop(TCGContext *s, int reg)336 #endif /* VBOX */337 301 { 338 302 tcg_out_opc(s, 0x58 + reg); 339 303 } 340 304 341 #ifndef VBOX342 305 static inline void tcg_out_ld(TCGContext *s, TCGType type, int ret, 343 #else /* VBOX */344 DECLINLINE(void) tcg_out_ld(TCGContext *s, TCGType type, int ret,345 #endif /* VBOX */346 306 int arg1, tcg_target_long arg2) 347 307 { … … 350 310 } 351 311 352 #ifndef VBOX353 312 static inline void tcg_out_st(TCGContext *s, TCGType type, int arg, 354 #else /* VBOX */355 DECLINLINE(void) tcg_out_st(TCGContext *s, TCGType type, int arg,356 #endif /* VBOX */357 313 int arg1, tcg_target_long arg2) 358 314 { … … 361 317 } 362 318 363 #ifndef VBOX364 319 static inline void tgen_arithi(TCGContext *s, int c, int r0, int32_t val) 365 #else /* VBOX */366 DECLINLINE(void) tgen_arithi(TCGContext *s, int c, int r0, int32_t val)367 #endif /* VBOX */368 320 { 369 321 if (val == (int8_t)val) { … … 444 396 445 397 #ifdef VBOX 446 DECLINLINE(void) 447 tcg_out_long_call(TCGContext *s, void* dst)398 399 DECLINLINE(void) tcg_out_long_call(TCGContext *s, void* dst) 448 400 { 449 401 intptr_t disp; … … 455 407 tcg_out32(s, disp); /* disp32 */ 456 408 } 457 DECLINLINE(void) 458 tcg_out_long_jmp(TCGContext *s, void* dst)409 410 DECLINLINE(void) tcg_out_long_jmp(TCGContext *s, void* dst) 459 411 { 460 412 intptr_t disp = (uintptr_t)dst - (uintptr_t)s->code_ptr - 5; … … 462 414 tcg_out32(s, disp); /* disp32 */ 463 415 } 416 464 417 #endif /* VBOX */ 465 466 418 467 419 /* XXX: we implement it at the target level to avoid having to … … 1126 1078 } 1127 1079 1128 #ifndef VBOX1129 1080 static inline void tcg_out_op(TCGContext *s, int opc, 1130 #else /* VBOX */1131 DECLINLINE(void) tcg_out_op(TCGContext *s, int opc,1132 #endif /* VBOX */1133 1081 const TCGArg *args, const int *const_args) 1134 1082 { -
trunk/src/recompiler/tcg/i386/tcg-target.h
r29520 r36125 57 57 #endif 58 58 59 #ifndef VBOX60 59 static inline void flush_icache_range(unsigned long start, unsigned long stop) 61 #else62 DECLINLINE(void) flush_icache_range(unsigned long start, unsigned long stop)63 #endif64 60 { 65 61 }
Note:
See TracChangeset
for help on using the changeset viewer.