Message ID | 20170917150535.8284-11-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp2746675qgf; Sun, 17 Sep 2017 08:12:52 -0700 (PDT) X-Received: by 10.55.157.87 with SMTP id g84mr16891485qke.70.1505661172249; Sun, 17 Sep 2017 08:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505661172; cv=none; d=google.com; s=arc-20160816; b=XCfzQlA0KISpXJ4Kw8Wj1X5vmVptvZKyaHnNydkCauwMn4OBrYTQWab5DYHajFb3Yu bSuInVBRsQhSBmqpHyWsbGAPuAONRgSU7Tr5BA9pqrNtHBdqIfSd7rxYNjUWErNlULSs 6mMDH2iWIhp41t5vcuYRfutiK6jLVZ3bRyb+GRttVt217U7cQtMgmSdD7DBKU+4gpADh FZzjglmwOFNy7LludogQ2XBYiRo3OPlEq2SO2RqRpJsAoQy0yL1aY+Ijfr3fGJBR+cz6 81/e8PFReggTf1HXF3wygrp4Do31zbVkLXu0Ae97VxBzck+jBhkO6rEyR2YlTPo62OzO 6D5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=dndxF/61zHzWbaZ0ejzbT8Z7J3HwgTKAANmOIGVrOnE=; b=EjZaag1OwTEZL3Sdij44K3pzdJr13EzKgQqvyisPquXEjsaChWw+XsAhwe9lGt1/J0 QURcHuZq9FDN59+8Vb68MkAB+0XW0dReqhQF5RRrT4yjg4cOWk8ccGVJlXAubbw/+aCS sW/+oGeUAnJEqFRbdETWeS2FiLbve6XzmhIH0MrFlCsWUK51oBJDBGx1cQ/vjSiF0Evz ypMCR3QNgId29Hf7T5qQ8ZnFuKjuR/2vs/4FSi9jY2Fsg/flEPX7+8ALtzajnXaW/DQS rbyo47XRaGJ/VP8ycH8cBpkXvNkps8kUdYW7Zu3x95+uZJOSUP7rphupHaymDOau0Viw SSWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HOvCCGeA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id c11si4932212qtj.15.2017.09.17.08.12.51 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 17 Sep 2017 08:12:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HOvCCGeA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1dtbFa-0005PY-5A for patch@linaro.org; Sun, 17 Sep 2017 11:12:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1dtb8z-00082C-BK for qemu-devel@nongnu.org; Sun, 17 Sep 2017 11:06:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1dtb8x-0008ET-Ce for qemu-devel@nongnu.org; Sun, 17 Sep 2017 11:06:01 -0400 Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]:56902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1dtb8x-0008EG-78 for qemu-devel@nongnu.org; Sun, 17 Sep 2017 11:05:59 -0400 Received: by mail-oi0-x22b.google.com with SMTP id y195so3686976oia.13 for <qemu-devel@nongnu.org>; Sun, 17 Sep 2017 08:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dndxF/61zHzWbaZ0ejzbT8Z7J3HwgTKAANmOIGVrOnE=; b=HOvCCGeAtPeH+ISq4WV9V0QX/tsx3aRH36pwmNv5WCWIuVQM3vwP3ZkBelLRXR+EiI R4+eWv1k+2trWd+RvFiJ8BkvwSju/4uDXxql6n/hdBfz5MG3oPITw8aQc0Pv7k1G0V// ZigNLvyIwKSd7sfUhk0ni3pg8xprzd+6NC+7Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dndxF/61zHzWbaZ0ejzbT8Z7J3HwgTKAANmOIGVrOnE=; b=iSDcn+QZiniFyS1Bpu+uY0aj4Irt6vAEYQv9z2YrPEM02JcURFGKNaiTO/62xjJK3B Diyx/eLHo8+Tkps2MLq6K9d7ef1DAL2Jhtj2AYWtKsQAjXztM2VGHEab7icKWkOSaJHY fzCe52RrEfLd1HqGHnCvmlNmCZ+wI2/IPH1Nx3XNRzFrVNEFczn1mR0bGDdBfFRbwCkd q5RwvtLPBvGB7RxjFMMJwxCqhAiC7+Y92ImuE/R+6jHSHBs4hzigeZAWfYuXbC3rmyPR upGZuL+/rybxpGUyxYXpl5weX0vMvr/Sq6Hkrm53UhLsGmFWZMNmwj1QBw5e91eL13dl 4ATw== X-Gm-Message-State: AHPjjUiMwRgariuJdE1f7ySGC9OBIYMttiKo5ZGF/s4gLUPpwViUOmFl jl0IpbEDbTFmwzbQdy8V1w== X-Google-Smtp-Source: AOwi7QDalUKBJo0WqezUHUo2Z8A+60DQKTzM72YsSRwYpo8/gLOM+i82IKh3sXsYufP7ikqVkHtmwQ== X-Received: by 10.202.180.84 with SMTP id d81mr33901456oif.15.1505660758394; Sun, 17 Sep 2017 08:05:58 -0700 (PDT) Received: from bigtime.twiddle.net (162.189-204-159.bestel.com.mx. [189.204.159.162]) by smtp.gmail.com with ESMTPSA id j2sm5348789oia.20.2017.09.17.08.05.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Sep 2017 08:05:57 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Sun, 17 Sep 2017 08:05:28 -0700 Message-Id: <20170917150535.8284-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170917150535.8284-1-richard.henderson@linaro.org> References: <20170917150535.8284-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22b Subject: [Qemu-devel] [PULL 10/17] tcg: Remove tcg_regset_{or, and, andnot, not} X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
TCG queued patches
|
expand
|
diff --git a/tcg/tcg.h b/tcg/tcg.h index 5bf67678d5..006e988788 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -190,10 +190,6 @@ typedef enum TCGOpcode { #define tcg_regset_set_reg(d, r) (d) |= 1L << (r) #define tcg_regset_reset_reg(d, r) (d) &= ~(1L << (r)) #define tcg_regset_test_reg(d, r) (((d) >> (r)) & 1) -#define tcg_regset_or(d, a, b) (d) = (a) | (b) -#define tcg_regset_and(d, a, b) (d) = (a) & (b) -#define tcg_regset_andnot(d, a, b) (d) = (a) & ~(b) -#define tcg_regset_not(d, a) (d) = ~(a) #ifndef TCG_TARGET_INSN_UNIT_SIZE # error "Missing TCG_TARGET_INSN_UNIT_SIZE" diff --git a/tcg/tcg.c b/tcg/tcg.c index a4badcc85f..dff9999bc6 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -2216,7 +2216,7 @@ static TCGReg tcg_reg_alloc(TCGContext *s, TCGRegSet desired_regs, TCGReg reg; TCGRegSet reg_ct; - tcg_regset_andnot(reg_ct, desired_regs, allocated_regs); + reg_ct = desired_regs & ~allocated_regs; order = rev ? indirect_reg_alloc_order : tcg_target_reg_alloc_order; /* first try free registers */