Changeset 42601 in vbox for trunk/src/recompiler/tcg/tcg.h
- Timestamp:
- Aug 5, 2012 4:26:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/tcg/tcg.h
r37689 r42601 282 282 /* goto_tb support */ 283 283 uint8_t *code_buf; 284 u nsigned long*tb_next;284 uintptr_t *tb_next; 285 285 uint16_t *tb_next_offset; 286 286 uint16_t *tb_jmp_offset; /* != NULL if USE_DIRECT_JUMP */ … … 342 342 TCGContext *s = &tcg_ctx; 343 343 uint8_t *ptr, *ptr_end; 344 size = (size + sizeof( long) - 1) & ~(sizeof(long) - 1);344 size = (size + sizeof(void *) - 1) & ~(sizeof(void *) - 1); 345 345 ptr = s->pool_cur; 346 346 ptr_end = ptr + size; … … 358 358 359 359 int tcg_gen_code(TCGContext *s, uint8_t *gen_code_buf); 360 int tcg_gen_code_search_pc(TCGContext *s, uint8_t *gen_code_buf, longoffset);360 int tcg_gen_code_search_pc(TCGContext *s, uint8_t *gen_code_buf, intptr_t offset); 361 361 362 362 void tcg_set_frame(TCGContext *s, int reg, … … 502 502 #if defined(_ARCH_PPC) && !defined(_ARCH_PPC64) 503 503 #define tcg_qemu_tb_exec(tb_ptr) \ 504 (( longREGPARM __attribute__ ((longcall)) (*)(void *))code_gen_prologue)(tb_ptr)505 #else 506 # if defined(VBOX) && defined(GCC_WITH_BUGGY_REGPARM) 504 ((intptr_t REGPARM __attribute__ ((longcall)) (*)(void *))code_gen_prologue)(tb_ptr) 505 #else 506 # if defined(VBOX) && defined(GCC_WITH_BUGGY_REGPARM) && !defined(__MINGW64__) 507 507 # define tcg_qemu_tb_exec(tb_ptr, ret) \ 508 508 __asm__ __volatile__("call *%%ecx" : "=a"(ret) : "a"(tb_ptr), "c" (&code_gen_prologue[0]) : "memory", "%edx", "cc") 509 # else /* !VBOX || !GCC_WITH_BUGGY_REG_PARAM */510 #define tcg_qemu_tb_exec(tb_ptr) (( longREGPARM (*)(void *))code_gen_prologue)(tb_ptr)511 # endif /* !VBOX || !GCC_WITH_BUGGY_REG_PARAM */512 #endif 509 # else 510 #define tcg_qemu_tb_exec(tb_ptr) ((intptr_t REGPARM (*)(void *))code_gen_prologue)(tb_ptr) 511 # endif 512 #endif
Note:
See TracChangeset
for help on using the changeset viewer.