{"id":812965,"url":"http://patchwork.ozlabs.org/api/patches/812965/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20170912162513.21694-13-richard.henderson@linaro.org/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170912162513.21694-13-richard.henderson@linaro.org>","list_archive_url":null,"date":"2017-09-12T16:25:09","name":"[v2,12/16] tcg: Remove tcg_regset_set","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"22ce1665fa0fde79e459b49ffb8a67e505e4e821","submitter":{"id":72104,"url":"http://patchwork.ozlabs.org/api/people/72104/?format=json","name":"Richard Henderson","email":"richard.henderson@linaro.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20170912162513.21694-13-richard.henderson@linaro.org/mbox/","series":[{"id":2737,"url":"http://patchwork.ozlabs.org/api/series/2737/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=2737","date":"2017-09-12T16:24:59","name":"TCG vectorization and example conversion","version":2,"mbox":"http://patchwork.ozlabs.org/series/2737/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/812965/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/812965/checks/","tags":{},"related":[],"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"axZd2h69\"; dkim-atps=neutral"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xs9Pv21xRz9s82\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 02:35:15 +1000 (AEST)","from localhost ([::1]:36920 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dro9Z-0002Hn-AQ\n\tfor incoming@patchwork.ozlabs.org; Tue, 12 Sep 2017 12:35:13 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:38126)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <richard.henderson@linaro.org>) id 1dro0E-0001py-Oz\n\tfor qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:35 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <richard.henderson@linaro.org>) id 1dro0D-00078d-ON\n\tfor qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:34 -0400","from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]:38132)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <richard.henderson@linaro.org>)\n\tid 1dro0D-000783-J1\n\tfor qemu-devel@nongnu.org; Tue, 12 Sep 2017 12:25:33 -0400","by mail-pg0-x22f.google.com with SMTP id v66so22136981pgb.5\n\tfor <qemu-devel@nongnu.org>; Tue, 12 Sep 2017 09:25:33 -0700 (PDT)","from bigtime.twiddle.net (97-126-103-167.tukw.qwest.net.\n\t[97.126.103.167]) by smtp.gmail.com with ESMTPSA id\n\tb22sm20382140pfh.175.2017.09.12.09.25.31\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tTue, 12 Sep 2017 09:25:31 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=el4T/AVVjBrBAYmdUo2Xlzw6hq6xYWCdOSJmFyee1iU=;\n\tb=axZd2h69vsgCzzD98AsQNwJtk7lMW4H+1QEgupBR/k+8NgBtqX1SFztK+fm+tVNwNa\n\tdrYMxXXOao8cohZb1gB/ciwBYIcNvHpuI9NaqigzTuWfxQml6F9mmKOWEn8+GkzYpbjc\n\tFG12OLEkVApHoUcWHjIlxbmucHmPY+VKInpQE=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=el4T/AVVjBrBAYmdUo2Xlzw6hq6xYWCdOSJmFyee1iU=;\n\tb=soZq7Zry2g3GHxjknXtVUzkJNExpW8i2yV+1FH/jjoecstpprQjRBgFd5TWb6VcSuE\n\t2NBrCVqGs40PHm3Nx3pYm5lNLi3/VY7Q/ehMcqc1ddDYtyos/1QXOnQtoXHoifYlfxHw\n\tE55lneMsV2bOTTiIwct4PKwto3XGSxJy7TTr4F3uYWqIuEWeXY9ldNQlZXoTAxDNLUPy\n\ttCwaqHrRwobvxbub8ZZpmiVQIGwU+nmJxVIKcWUiYcaG+PQWuqjynsZFLfAXRsITpNzH\n\tImLiphB2XvfHiOk98V58FPuw/DiX1FX8NHqaSAW6XQd7GS/+E8SSm+5099cmReQFs9+l\n\tPFKQ==","X-Gm-Message-State":"AHPjjUih4ReYSqpWzqr3SQZKiAKBu5dRtlSBzd8V3yoktFqj/ny6Ads9\n\txKl8VuANhB593ce1KbGNBA==","X-Google-Smtp-Source":"AOwi7QCQQAksbtYTwf6ruvUgfSON6nbTpj40pmMyEkMf5RWM+DRydZz7ZfywoZpB5bGZxUtNwWkxgA==","X-Received":"by 10.84.160.200 with SMTP id v8mr1488398plg.9.1505233532471;\n\tTue, 12 Sep 2017 09:25:32 -0700 (PDT)","From":"Richard Henderson <richard.henderson@linaro.org>","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\n\trecognized.","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":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<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>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"alex.bennee@linaro.org, f4bug@amsat.org","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"},"content":"Signed-off-by: Richard Henderson <richard.henderson@linaro.org>\n---\n tcg/tcg.h | 1 -\n tcg/tcg.c | 8 ++++----\n 2 files changed, 4 insertions(+), 5 deletions(-)","diff":"diff --git a/tcg/tcg.h b/tcg/tcg.h\nindex 7226727ee4..e168bd2c44 100644\n--- a/tcg/tcg.h\n+++ b/tcg/tcg.h\n@@ -210,7 +210,6 @@ typedef enum TCGOpcode {\n     NB_OPS,\n } TCGOpcode;\n \n-#define tcg_regset_set(d, s) (d) = (s)\n #define tcg_regset_set32(d, reg, val32) (d) |= (val32) << (reg)\n #define tcg_regset_set_reg(d, r) (d) |= 1L << (r)\n #define tcg_regset_reset_reg(d, r) (d) &= ~(1L << (r))\ndiff --git a/tcg/tcg.c b/tcg/tcg.c\nindex f40cce3364..873915925f 100644\n--- a/tcg/tcg.c\n+++ b/tcg/tcg.c\n@@ -2452,7 +2452,7 @@ static void tcg_reg_alloc_mov(TCGContext *s, const TCGOpDef *def,\n     TCGTemp *ts, *ots;\n     TCGType otype, itype;\n \n-    tcg_regset_set(allocated_regs, s->reserved_regs);\n+    allocated_regs = s->reserved_regs;\n     ots = &s->temps[args[0]];\n     ts = &s->temps[args[1]];\n \n@@ -2540,8 +2540,8 @@ static void tcg_reg_alloc_op(TCGContext *s,\n            args + nb_oargs + nb_iargs, \n            sizeof(TCGArg) * def->nb_cargs);\n \n-    tcg_regset_set(i_allocated_regs, s->reserved_regs);\n-    tcg_regset_set(o_allocated_regs, s->reserved_regs);\n+    i_allocated_regs = s->reserved_regs;\n+    o_allocated_regs = s->reserved_regs;\n \n     /* satisfy input constraints */ \n     for(k = 0; k < nb_iargs; k++) {\n@@ -2741,7 +2741,7 @@ static void tcg_reg_alloc_call(TCGContext *s, int nb_oargs, int nb_iargs,\n     }\n     \n     /* assign input registers */\n-    tcg_regset_set(allocated_regs, s->reserved_regs);\n+    allocated_regs = s->reserved_regs;\n     for(i = 0; i < nb_regs; i++) {\n         arg = args[nb_oargs + i];\n         if (arg != TCG_CALL_DUMMY_ARG) {\n","prefixes":["v2","12/16"]}