From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaYBg-0003wy-Gn for qemu-devel@nongnu.org; Mon, 19 Nov 2012 15:43:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaYBe-0001m6-MY for qemu-devel@nongnu.org; Mon, 19 Nov 2012 15:43:24 -0500 Received: from mail-pb0-f45.google.com ([209.85.160.45]:56230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaYBe-0001k3-E5 for qemu-devel@nongnu.org; Mon, 19 Nov 2012 15:43:22 -0500 Received: by mail-pb0-f45.google.com with SMTP id mc8so3589892pbc.4 for ; Mon, 19 Nov 2012 12:43:21 -0800 (PST) Sender: Richard Henderson From: Richard Henderson Date: Mon, 19 Nov 2012 12:43:14 -0800 Message-Id: <1353357794-10212-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH] tci: Fix type of tci_read_label List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Stefan Weil Fixes the pointer truncation that was occurring for branches. Cc: Stefan Weil Cc: Blue Swirl Signed-off-by: Richard Henderson --- tci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 1.7.11.7