diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-02-25 19:05:41 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-02-25 18:26:25 +0000 |
commit | bc57c114b09e6b223abff451e78b8b95e53e6175 (patch) | |
tree | 0bd4a5f4ed4d19fa3e819a5e8b4d62cb19f53335 /target-sparc | |
parent | d44168fffa07fc57e61a37da65e9348661dec887 (diff) |
target-sparc: fix --enable-debug build for 64 bit host
b551ec04ca45d1925417dd2ec7c1b7f115c84f1d fixed
the compilation for 32 bit hosts, but introduced
a new error for 64 bit hosts:
tcg_temp_new_ptr needs a matching tcg_temp_free_ptr.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sparc')
-rw-r--r-- | target-sparc/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c index b7d2a324c2..1164feb882 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -1680,7 +1680,7 @@ static inline void gen_load_trap_state_at_tl(TCGv_ptr r_tsptr, TCGv_ptr cpu_env) TCGv_ptr r_tl_tmp = tcg_temp_new_ptr(); tcg_gen_ext_i32_ptr(r_tl_tmp, r_tl); tcg_gen_add_ptr(r_tsptr, r_tsptr, r_tl_tmp); - tcg_temp_free_i32(r_tl_tmp); + tcg_temp_free_ptr(r_tl_tmp); } tcg_temp_free_i32(r_tl); |