summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-11-19 12:43:14 -0800
committerDoug Goldstein <cardoe@cardoe.com>2012-12-13 15:31:59 -0600
commit1bdf9ca5a7de88ec43c5b7aa997941de73f81401 (patch)
treeca66913024b70c413052c97dd297135271d675a6
parentqcow2: Fix refcount table size calculation (diff)
downloadqemu-kvm-1bdf9ca5a7de88ec43c5b7aa997941de73f81401.tar.gz
qemu-kvm-1bdf9ca5a7de88ec43c5b7aa997941de73f81401.tar.bz2
qemu-kvm-1bdf9ca5a7de88ec43c5b7aa997941de73f81401.zip
tci: Fix type of tci_read_label
Fixes the pointer truncation that was occurring for branches. Cc: Stefan Weil <sw@weilnetz.de> Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Stefan Weil <sw@weilnetz.de> Tested-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com> (cherry picked from commit c6c5063c7a5bb1d3fe6b9931a1ec15294e39b8b1) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> (cherry picked from commit 38c6d17e75f83363ef92582dd366a4b1d936dc2f)
-rw-r--r--tci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tci.c b/tci.c
index a4f7b7841..bb456d2fc 100644
--- a/tci.c
+++ b/tci.c
@@ -338,9 +338,9 @@ static uint64_t tci_read_ri64(uint8_t **tb_ptr)
}
#endif
-static target_ulong tci_read_label(uint8_t **tb_ptr)
+static tcg_target_ulong tci_read_label(uint8_t **tb_ptr)
{
- target_ulong label = tci_read_i(tb_ptr);
+ tcg_target_ulong label = tci_read_i(tb_ptr);
assert(label != 0);
return label;
}