Changeset 36125 in vbox for trunk/src/recompiler/tcg/x86_64
- Timestamp:
- Mar 1, 2011 4:49:42 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70290
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/tcg/x86_64/tcg-target.c
r29520 r36125 497 497 498 498 #ifdef VBOX 499 499 500 DECLINLINE(void) tcg_out_pushq(TCGContext *s, tcg_target_long val) 500 501 { … … 522 523 else 523 524 { 524 # if 0525 # if 0 525 526 /* Somewhat tricky, but allows long jump not touching registers */ 526 527 int off = 5 /* push imm32 */ + 5 /* push imm32 */ + 1 /* ret */; … … 534 535 tcg_out_pushq(s, dst); 535 536 tcg_out8(s, 0xc3); /* ret, used as call */ 536 # else537 # else 537 538 tcg_out_movi(s, TCG_TYPE_I64, TCG_REG_RAX, dst); 538 539 tcg_out8(s, 0xff); /* call *%eax */ 539 540 tcg_out8(s, 0xd0); 540 # endif541 # endif 541 542 } 542 543 } … … 562 563 return; 563 564 } 564 # if 0565 # if 0 565 566 tcg_out_pushq(s, dst); 566 567 tcg_out8(s, 0xc3); /* ret */ 567 # else568 # else 568 569 tcg_out_movi(s, TCG_TYPE_I64, TCG_REG_RAX, dst); 569 570 tcg_out8(s, 0xff); /* jmp *%eax */ 570 571 tcg_out8(s, 0xe0); 571 #endif 572 } 573 #endif 572 # endif 573 } 574 575 #endif /* VBOX */ 574 576 575 577 #if defined(CONFIG_SOFTMMU)
Note:
See TracChangeset
for help on using the changeset viewer.