From: Richard Henderson Date: Mon, 19 Nov 2012 20:43:14 +0000 (-0800) Subject: tci: Fix type of tci_read_label X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~3019 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6c5063c7a5bb1d3fe6b9931a1ec15294e39b8b1;p=sdk%2Femulator%2Fqemu.git tci: Fix type of tci_read_label Fixes the pointer truncation that was occurring for branches. Cc: Stefan Weil Cc: Blue Swirl Signed-off-by: Richard Henderson Reviewed-by: Stefan Weil Tested-by: Stefan Weil Signed-off-by: Blue Swirl --- diff --git a/tci.c b/tci.c index 9c87c8e..54cf1d9 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; }