]> git.proxmox.com Git - qemu.git/commit
tcg: Improve tcg_out_label and fix its usage for w64
authorStefan Weil <sw@weilnetz.de>
Sat, 10 Mar 2012 18:59:04 +0000 (19:59 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 11 Mar 2012 11:28:39 +0000 (11:28 +0000)
commit9d6fca70c771ac50a641aa2558e3a19c4e2b09b8
treed5ad62768c9a4d059113db2a419bac0e6695c241
parentf7cf5d5b7175ee8ee26a90cdbfbb9d5ccc560416
tcg: Improve tcg_out_label and fix its usage for w64

tcg_out_label is always called with a third argument of pointer type
which was casted to tcg_target_long.

These casts can be avoided by changing the prototype of tcg_out_label.

There was also a cast to long. For most hosts with
sizeof(long) == sizeof(tcg_target_long) == sizeof(void *) this did not
matter, but for w64 it was wrong. This is fixed now.

Cc: Blue Swirl <blauwirbel@gmail.com>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
tcg/hppa/tcg-target.c
tcg/i386/tcg-target.c
tcg/sparc/tcg-target.c
tcg/tcg.c