From patchwork Mon Nov 19 20:43:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 200153 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 006AD2C0097 for ; Tue, 20 Nov 2012 07:43:32 +1100 (EST) Received: from localhost ([::1]:51934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaYBm-0003x4-Ua for incoming@patchwork.ozlabs.org; Mon, 19 Nov 2012 15:43:30 -0500 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=m9JHOvd5eFD+NsMyRz/OaVeFmFLEOe6wey8kj/CFVZs=; b=YX73b+OrxaBeaKA0AtNqY+BuaxoAGxSaHMSyI/65xQEffVQ2sx3TLjTNq5WEKOrXMA mos5gxd1zRxjsNK410ZQYCpgnFtmXga8TMmMFsqUJRVn0d+SYYpVvzc9mJtaHjnR+mk6 yUFjCs1UeFAFcPUDip9kKtwDW6wjSYAG9RxD4nQFe4rELBSUc4x3csmCyIWe38D+Y0T/ rlC2IKNn5a6oH8pFiirUM0pBVk0wDvuN0Mgg0f8PDGieXU1/x4+9tw5ev+Cm9ES02sb8 2nzN17aclJJk/VBaSNVRGMamJMKwjrN7n75anInv8Ba2D4uXN8uUhTXIxHw+W78Q2QpP Ptxw== Received: by 10.68.234.98 with SMTP id ud2mr36641103pbc.136.1353357801618; Mon, 19 Nov 2012 12:43:21 -0800 (PST) Received: from anchor.twiddle.home.com (50-194-63-110-static.hfc.comcastbusiness.net. [50.194.63.110]) by mx.google.com with ESMTPS id mn5sm6736989pbc.12.2012.11.19.12.43.20 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 12:43:20 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 19 Nov 2012 12:43:14 -0800 Message-Id: <1353357794-10212-1-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.11.7 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.45 Cc: Blue Swirl , Stefan Weil Subject: [Qemu-devel] [PATCH] tci: Fix type of tci_read_label X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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; }