From patchwork Tue Sep 12 16:25:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 112341 Delivered-To: patch@linaro.org Received: by 10.80.202.13 with SMTP id d13csp153940edi; Tue, 12 Sep 2017 09:34:52 -0700 (PDT) X-Received: by 10.200.40.117 with SMTP id 50mr15737195qtr.167.1505234092483; Tue, 12 Sep 2017 09:34:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505234092; cv=none; d=google.com; s=arc-20160816; b=JQcr2JTML11l0CmZ5+QTCf/EqI3LOFBMw/aKGoQO9XFi8OoTIZnz4qAJQbVMe1vnx2 VlR9LhiORkBQs1Pz38k7e8Et3uJdAl0SvRHlzQJRdfbv3QbuMk7Yg2JGRqAFOD/rdJeB wxI8o41TcAfeni2oNr9x4Af6iAxDl3JwDh7YrmJw/BTzJnWIlwyHyFQxpQY3vuGcGTVn CNGyEDIIVuYfTvemc+76GqHGnX6ygh957foVJdblspaAyCqt+iKPXFXGwWwjISAtzZxA S+C5vaPPWcB9DWutsrMm9e57DYgaZuArJ3SCQ0Pp6Gxsi1nphXXAc6zgQrQ3yKMRRD1J 5FqA== 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:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=el4T/AVVjBrBAYmdUo2Xlzw6hq6xYWCdOSJmFyee1iU=; b=b/vshSnSluYjnSPBIPSBVra1OaLXzI5cGmUDd9LyNNJOp1gTY2SAFZlw66MB78yV2z 6ZH76OEXmFXnYU+2x66IaFamUmiWFCyf4Lc6LH5SMJ7lkF7+zYIs+GRPQngCyeYtluID YR0xkkyEiofhKznN/3vHeGY2Tw8BttmvqlgvFp4Q8T+i/LM6Jb2g5dXoDSCgLGKpIChv z0lS4GjmHOq5ytfCOowwDNusT2mReM/wfkOXxyqvfhAXhEtujvwMDpOJG3/3ByjsS6cL pftivop59hVyui9v1Szi8H/B8v/nO06MWxWRW1mf1NZwKD0DISPTTlwtxm/xmrRdSzWo Oa/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=axZd2h69; 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: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id l63si12148441qke.440.2017.09.12.09.34.51 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 12 Sep 2017 09:34: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=axZd2h69; 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]:36920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dro9C-0002Hn-2V for patch@linaro.org; Tue, 12 Sep 2017 12:34:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dro0E-0001py-Oz for qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dro0D-00078d-ON for qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:34 -0400 Received: from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]:38132) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dro0D-000783-J1 for qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:33 -0400 Received: by mail-pg0-x22f.google.com with SMTP id v66so22136981pgb.5 for ; Tue, 12 Sep 2017 09:25:33 -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; bh=el4T/AVVjBrBAYmdUo2Xlzw6hq6xYWCdOSJmFyee1iU=; b=axZd2h69vsgCzzD98AsQNwJtk7lMW4H+1QEgupBR/k+8NgBtqX1SFztK+fm+tVNwNa drYMxXXOao8cohZb1gB/ciwBYIcNvHpuI9NaqigzTuWfxQml6F9mmKOWEn8+GkzYpbjc FG12OLEkVApHoUcWHjIlxbmucHmPY+VKInpQE= 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; bh=el4T/AVVjBrBAYmdUo2Xlzw6hq6xYWCdOSJmFyee1iU=; b=soZq7Zry2g3GHxjknXtVUzkJNExpW8i2yV+1FH/jjoecstpprQjRBgFd5TWb6VcSuE 2NBrCVqGs40PHm3Nx3pYm5lNLi3/VY7Q/ehMcqc1ddDYtyos/1QXOnQtoXHoifYlfxHw E55lneMsV2bOTTiIwct4PKwto3XGSxJy7TTr4F3uYWqIuEWeXY9ldNQlZXoTAxDNLUPy tCwaqHrRwobvxbub8ZZpmiVQIGwU+nmJxVIKcWUiYcaG+PQWuqjynsZFLfAXRsITpNzH ImLiphB2XvfHiOk98V58FPuw/DiX1FX8NHqaSAW6XQd7GS/+E8SSm+5099cmReQFs9+l PFKQ== X-Gm-Message-State: AHPjjUih4ReYSqpWzqr3SQZKiAKBu5dRtlSBzd8V3yoktFqj/ny6Ads9 xKl8VuANhB593ce1KbGNBA== X-Google-Smtp-Source: AOwi7QCQQAksbtYTwf6ruvUgfSON6nbTpj40pmMyEkMf5RWM+DRydZz7ZfywoZpB5bGZxUtNwWkxgA== X-Received: by 10.84.160.200 with SMTP id v8mr1488398plg.9.1505233532471; Tue, 12 Sep 2017 09:25:32 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-103-167.tukw.qwest.net. [97.126.103.167]) by smtp.gmail.com with ESMTPSA id b22sm20382140pfh.175.2017.09.12.09.25.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Sep 2017 09:25:31 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 12 Sep 2017 09:25:09 -0700 Message-Id: <20170912162513.21694-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170912162513.21694-1-richard.henderson@linaro.org> References: <20170912162513.21694-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22f Subject: [Qemu-devel] [PATCH v2 12/16] tcg: Remove tcg_regset_set X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.bennee@linaro.org, f4bug@amsat.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- tcg/tcg.h | 1 - tcg/tcg.c | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) -- 2.13.5 Reviewed-by: Philippe Mathieu-Daudé diff --git a/tcg/tcg.h b/tcg/tcg.h index 7226727ee4..e168bd2c44 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -210,7 +210,6 @@ typedef enum TCGOpcode { NB_OPS, } TCGOpcode; -#define tcg_regset_set(d, s) (d) = (s) #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg) #define tcg_regset_set_reg(d, r) (d) |= 1L << (r) #define tcg_regset_reset_reg(d, r) (d) &= ~(1L << (r)) diff --git a/tcg/tcg.c b/tcg/tcg.c index f40cce3364..873915925f 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -2452,7 +2452,7 @@ static void tcg_reg_alloc_mov(TCGContext *s, const TCGOpDef *def, TCGTemp *ts, *ots; TCGType otype, itype; - tcg_regset_set(allocated_regs, s->reserved_regs); + allocated_regs = s->reserved_regs; ots = &s->temps[args[0]]; ts = &s->temps[args[1]]; @@ -2540,8 +2540,8 @@ static void tcg_reg_alloc_op(TCGContext *s, args + nb_oargs + nb_iargs, sizeof(TCGArg) * def->nb_cargs); - tcg_regset_set(i_allocated_regs, s->reserved_regs); - tcg_regset_set(o_allocated_regs, s->reserved_regs); + i_allocated_regs = s->reserved_regs; + o_allocated_regs = s->reserved_regs; /* satisfy input constraints */ for(k = 0; k < nb_iargs; k++) { @@ -2741,7 +2741,7 @@ static void tcg_reg_alloc_call(TCGContext *s, int nb_oargs, int nb_iargs, } /* assign input registers */ - tcg_regset_set(allocated_regs, s->reserved_regs); + allocated_regs = s->reserved_regs; for(i = 0; i < nb_regs; i++) { arg = args[nb_oargs + i]; if (arg != TCG_CALL_DUMMY_ARG) {