Revision ebecf363 tcg/tcg-op.h
b/tcg/tcg-op.h | ||
---|---|---|
2304 | 2304 |
#endif |
2305 | 2305 |
} |
2306 | 2306 |
|
2307 |
#define tcg_gen_ld_ptr tcg_gen_ld_i32
|
|
2308 |
#define tcg_gen_discard_ptr tcg_gen_discard_i32
|
|
2307 |
#define tcg_gen_ld_ptr(R, A, O) tcg_gen_ld_i32(TCGV_PTR_TO_NAT(R), (A), (O))
|
|
2308 |
#define tcg_gen_discard_ptr(A) tcg_gen_discard_i32(TCGV_PTR_TO_NAT(A))
|
|
2309 | 2309 |
|
2310 | 2310 |
#else /* TCG_TARGET_REG_BITS == 32 */ |
2311 | 2311 |
|
... | ... | |
2372 | 2372 |
tcg_gen_qemu_ldst_op_i64(INDEX_op_qemu_st64, arg, addr, mem_index); |
2373 | 2373 |
} |
2374 | 2374 |
|
2375 |
#define tcg_gen_ld_ptr tcg_gen_ld_i64
|
|
2376 |
#define tcg_gen_discard_ptr tcg_gen_discard_i64
|
|
2375 |
#define tcg_gen_ld_ptr(R, A, O) tcg_gen_ld_i64(TCGV_PTR_TO_NAT(R), (A), (O))
|
|
2376 |
#define tcg_gen_discard_ptr(A) tcg_gen_discard_i64(TCGV_PTR_TO_NAT(A))
|
|
2377 | 2377 |
|
2378 | 2378 |
#endif /* TCG_TARGET_REG_BITS != 32 */ |
2379 | 2379 |
|
... | ... | |
2523 | 2523 |
#endif |
2524 | 2524 |
|
2525 | 2525 |
#if TCG_TARGET_REG_BITS == 32 |
2526 |
#define tcg_gen_add_ptr tcg_gen_add_i32 |
|
2527 |
#define tcg_gen_addi_ptr tcg_gen_addi_i32 |
|
2528 |
#define tcg_gen_ext_i32_ptr tcg_gen_mov_i32 |
|
2526 |
#define tcg_gen_add_ptr(R, A, B) tcg_gen_add_i32(TCGV_PTR_TO_NAT(R), \ |
|
2527 |
TCGV_PTR_TO_NAT(A), \ |
|
2528 |
TCGV_PTR_TO_NAT(B)) |
|
2529 |
#define tcg_gen_addi_ptr(R, A, B) tcg_gen_addi_i32(TCGV_PTR_TO_NAT(R), \ |
|
2530 |
TCGV_PTR_TO_NAT(A), (B)) |
|
2531 |
#define tcg_gen_ext_i32_ptr(R, A) tcg_gen_mov_i32(TCGV_PTR_TO_NAT(R), (A)) |
|
2529 | 2532 |
#else /* TCG_TARGET_REG_BITS == 32 */ |
2530 |
#define tcg_gen_add_ptr tcg_gen_add_i64 |
|
2531 |
#define tcg_gen_addi_ptr tcg_gen_addi_i64 |
|
2532 |
#define tcg_gen_ext_i32_ptr tcg_gen_ext_i32_i64 |
|
2533 |
#define tcg_gen_add_ptr(R, A, B) tcg_gen_add_i64(TCGV_PTR_TO_NAT(R), \ |
|
2534 |
TCGV_PTR_TO_NAT(A), \ |
|
2535 |
TCGV_PTR_TO_NAT(B)) |
|
2536 |
#define tcg_gen_addi_ptr(R, A, B) tcg_gen_addi_i64(TCGV_PTR_TO_NAT(R), \ |
|
2537 |
TCGV_PTR_TO_NAT(A), (B)) |
|
2538 |
#define tcg_gen_ext_i32_ptr(R, A) tcg_gen_ext_i32_i64(TCGV_PTR_TO_NAT(R), (A)) |
|
2533 | 2539 |
#endif /* TCG_TARGET_REG_BITS != 32 */ |
Also available in: Unified diff