From patchwork Sat Feb 1 22:59:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 24002 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E0256202B2 for ; Sat, 1 Feb 2014 23:00:17 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id m10sf14265059vbh.8 for ; Sat, 01 Feb 2014 15:00:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=tsg/dywrsgtspcj3gFWexWiGgrnIFyC1uMPRJAjvMYA=; b=P93ICur5Gp6TXgPuACz46qKwRC7HdlOP+6mkCb4BkrdbFXIRoOe2nIZJDksbhiTZG6 6jCObl/MUoL4KGu4lbaE84QQNQNKsYne8eVCPqaQq3b8jlDYlKy6BtPwJztc5ciYp+sY ycGx83UuhORqTgJTh5xYvx4cNQO+wh/2NT7kjwpO2FjOix1nImtiQGSIVerShyDYoNeQ keSjfhCAn8HvSRXiV/we+LGI+2PvcePzl/WucJF1l/0QuA/Mms0uQXvAJdPkrnG/lzdi mLGxD12xzziMUvKal+KOGE4uz93trwJ8a+rlp1N8GAOrrh9U9IWtNyBOVG/CEQ1AY9iq KR3g== X-Gm-Message-State: ALoCoQlxaNhSmbR5bWLWco3mgsu16dnVGEhXV2lg4VriUAgMpRo9gsrdxom8eeUFKDHCyxJJrw8X X-Received: by 10.58.253.229 with SMTP id ad5mr10020130ved.30.1391295617000; Sat, 01 Feb 2014 15:00:17 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.84.71 with SMTP id k65ls1371067qgd.89.gmail; Sat, 01 Feb 2014 15:00:16 -0800 (PST) X-Received: by 10.220.251.73 with SMTP id mr9mr21894929vcb.2.1391295616933; Sat, 01 Feb 2014 15:00:16 -0800 (PST) Received: from mail-vb0-f50.google.com (mail-vb0-f50.google.com [209.85.212.50]) by mx.google.com with ESMTPS id at8si5253688vec.37.2014.02.01.15.00.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 01 Feb 2014 15:00:16 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.50; Received: by mail-vb0-f50.google.com with SMTP id w8so3803307vbj.37 for ; Sat, 01 Feb 2014 15:00:16 -0800 (PST) X-Received: by 10.221.40.10 with SMTP id to10mr2625022vcb.22.1391295616681; Sat, 01 Feb 2014 15:00:16 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp53149vcz; Sat, 1 Feb 2014 15:00:16 -0800 (PST) X-Received: by 10.194.104.39 with SMTP id gb7mr220936wjb.69.1391295614377; Sat, 01 Feb 2014 15:00:14 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id gj10si1865724wib.86.2014.02.01.15.00.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 01 Feb 2014 15:00:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1W9jXk-0000Nj-1J; Sat, 01 Feb 2014 23:00:08 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Alexander Graf , Michael Matz , Claudio Fontana , Dirk Mueller , Laurent Desnogues , kvmarm@lists.cs.columbia.edu, Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Christoffer Dall , Will Newton , Peter Crosthwaite Subject: [PATCH v2 04/13] tcg: Add TCGV_UNUSED_PTR, TCGV_IS_UNUSED_PTR, TCGV_EQUAL_PTR Date: Sat, 1 Feb 2014 22:59:58 +0000 Message-Id: <1391295607-1426-5-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391295607-1426-1-git-send-email-peter.maydell@linaro.org> References: <1391295607-1426-1-git-send-email-peter.maydell@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , We have macros for marking TCGv values as unused, checking if they are unused and comparing them to each other. However these only exist for TCGv_i32 and TCGv_i64; add them for TCGv_ptr as well. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- tcg/tcg.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tcg/tcg.h b/tcg/tcg.h index c72af6c..f7efcb4 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -324,13 +324,16 @@ typedef int TCGv_i64; #define TCGV_EQUAL_I32(a, b) (GET_TCGV_I32(a) == GET_TCGV_I32(b)) #define TCGV_EQUAL_I64(a, b) (GET_TCGV_I64(a) == GET_TCGV_I64(b)) +#define TCGV_EQUAL_PTR(a, b) (GET_TCGV_PTR(a) == GET_TCGV_PTR(b)) /* Dummy definition to avoid compiler warnings. */ #define TCGV_UNUSED_I32(x) x = MAKE_TCGV_I32(-1) #define TCGV_UNUSED_I64(x) x = MAKE_TCGV_I64(-1) +#define TCGV_UNUSED_PTR(x) x = MAKE_TCGV_PTR(-1) #define TCGV_IS_UNUSED_I32(x) (GET_TCGV_I32(x) == -1) #define TCGV_IS_UNUSED_I64(x) (GET_TCGV_I64(x) == -1) +#define TCGV_IS_UNUSED_PTR(x) (GET_TCGV_PTR(x) == -1) /* call flags */ /* Helper does not read globals (either directly or through an exception). It