]> Git Repo - qemu.git/commitdiff
tci: Fix type of tci_read_label
authorRichard Henderson <[email protected]>
Mon, 19 Nov 2012 20:43:14 +0000 (12:43 -0800)
committerBlue Swirl <[email protected]>
Sat, 24 Nov 2012 19:52:00 +0000 (19:52 +0000)
Fixes the pointer truncation that was occurring for branches.

Cc: Stefan Weil <[email protected]>
Cc: Blue Swirl <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
Reviewed-by: Stefan Weil <[email protected]>
Tested-by: Stefan Weil <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
tci.c

diff --git a/tci.c b/tci.c
index 9c87c8e8b31b9c550e09c558b8b0e3bdb6f2c9d5..54cf1d9524bb9357aab91e18192f3444944f3eb9 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;
 }
This page took 0.027261 seconds and 4 git commands to generate.