]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tci: Fix type of tci_read_label
authorRichard Henderson <rth@twiddle.net>
Mon, 19 Nov 2012 20:43:14 +0000 (12:43 -0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 3 Dec 2012 20:04:34 +0000 (14:04 -0600)
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>
tci.c

diff --git a/tci.c b/tci.c
index a4f7b7841882bac181fee1791c98b7342e18b9d9..bb456d2fc6f8a16bbac60b1f3be15676f1f7e380 100644 (file)
--- 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;
 }