diff options
author | Richard Henderson <rth@twiddle.net> | 2013-08-31 05:46:25 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2013-09-25 07:46:32 -0700 |
commit | 5e0f40cfedecfbc2a0608d75e8a8d22173f23431 (patch) | |
tree | d6d9468de9f1687be6e35275d9c0ba6f8cfbfff3 /tcg | |
parent | 8327a470df78cb41de95f6be0133a59e0a721e2c (diff) |
tcg-ppc64: Use tcg_out64
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/ppc64/tcg-target.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index 848029fbe0..27a955ba2a 100644 --- a/tcg/ppc64/tcg-target.c +++ b/tcg/ppc64/tcg-target.c @@ -997,9 +997,6 @@ static void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, int opc) static void tcg_target_qemu_prologue(TCGContext *s) { int i, frame_size; -#ifndef __APPLE__ - uint64_t addr; -#endif frame_size = 0 + 8 /* back chain */ @@ -1020,8 +1017,7 @@ static void tcg_target_qemu_prologue(TCGContext *s) #ifndef __APPLE__ /* First emit adhoc function descriptor */ - addr = (uint64_t) s->code_ptr + 24; - tcg_out32(s, addr >> 32); tcg_out32(s, addr); /* entry point */ + tcg_out64(s, (uint64_t)s->code_ptr + 24); /* entry point */ s->code_ptr += 16; /* skip TOC and environment pointer */ #endif |