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: 9949621 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5146C603F3 for ; Tue, 12 Sep 2017 16:36:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FF9F2904E for ; Tue, 12 Sep 2017 16:36:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44ED329057; Tue, 12 Sep 2017 16:36:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B563929053 for ; Tue, 12 Sep 2017 16:36:06 +0000 (UTC) Received: from localhost ([::1]:36920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1droA3-0002Hn-0G for patchwork-qemu-devel@patchwork.kernel.org; Tue, 12 Sep 2017 12:35:43 -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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- tcg/tcg.h | 1 - tcg/tcg.c | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) 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) {