From patchwork Wed May 19 18:30:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 442483 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp1591342jac; Wed, 19 May 2021 11:47:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTxiFjuK+MIgs31m/iSnzCoiGopbrtGxWBV/xaOOXkJ4/MWEZ71T6gWPytV2H2NA6txCw/ X-Received: by 2002:a25:e443:: with SMTP id b64mr1283182ybh.379.1621450069696; Wed, 19 May 2021 11:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621450069; cv=none; d=google.com; s=arc-20160816; b=jCX6SufwR3PVKPwHMUyAe7xszxZ9Ji8MCiOjIZ5inPF7sXOvAI8nJS9c53zFacs4rg zqCQq84+BPI7I2PJXSz/voo+RbZys85P4oRKUTdAqD4PrEZYmtfU7MltIz0MVwCd6Em4 ITkqOKr1FrUEt5negPMhJWnczH5D63Bys6PmVVz+Lwm84ws4wB34ACTM6yKYyq7m9FSa 1bMjoln47+XTaBx2ZaE6Idrer/Gkh+x1HN941yAmIXR2w8/ANgLhWuIvFmAyv7EwWKB2 36uDklQ0d+TCOWzes/Et0apXhnrOwKG86vElVmI21Zcqe6NQao/b8FpJk6H0iOR+OIbF 3c0g== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=MmALl6+SrAgZGE+y4AHRDA6ukcJz+jYrukcq8t6BAbA=; b=EqOYNe6aw1ZC4lT7pakNZWtuWJDA/vSzjrqXOga5YAYpIDK9zp7yGt6+5z605M75cD /2PlO+704as2TKfn/IxHCKtXhh17qO5iG4Bjp3hiWpKXqPB92FmiR9UF8AqA1kjjlylM 4XoTY9VvC+QXQSb9FY3ANAmXt/SpWK0GcJIlrSCH9c41RM3MHxzYHm887HGo1gH8J6Fp BOiLKRFWrSTykR7y7lXedX7V5siqycQzlmYKKFU9bgdQga8fq6GjID7Mf+gMN/iOIa9/ UO1KqArPEUaNfaFx62FyfTLWpu95GqRoLwL+BItygOzWtUsMma199KtH81uaiin1UsrK nuXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E7Qi3grS; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y11si259814ybp.31.2021.05.19.11.47.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 May 2021 11:47:49 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E7Qi3grS; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:50270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljRET-0000xJ-2g for patch@linaro.org; Wed, 19 May 2021 14:47:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljQye-00043P-9c for qemu-devel@nongnu.org; Wed, 19 May 2021 14:31:28 -0400 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]:34688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljQyV-0005kB-AR for qemu-devel@nongnu.org; Wed, 19 May 2021 14:31:27 -0400 Received: by mail-ot1-x32d.google.com with SMTP id u25-20020a0568302319b02902ac3d54c25eso12656592ote.1 for ; Wed, 19 May 2021 11:31:15 -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=MmALl6+SrAgZGE+y4AHRDA6ukcJz+jYrukcq8t6BAbA=; b=E7Qi3grS40snfcUegvCNE9Ukgir8DUOneR0HOdM/5u5omYiQUBx7LZcCSxX/vR/4f4 oMoBuCl1B0xNEqfsHb49O7mtmUgrm7jZTvwODPlXZxbS48NvuWWhqtiS7tbs6VlQWX70 Z66N5Lo0CjCSAkVeP0dauTMydVlZlUBL1nK8jNvpP6UJpa+nTfhjA/BN/ATlcwyxMcSz CRWh5lR7j3wlE7EvMkGn8oqO1kzDzcX3K3WRC2/0ulZdDdvVDvAmsQeqrBZU4QHG5TUn 3M11lFfdWqzYKD/JFNIaF0VGX/xFsj54nluKLp4kLsxMhmuoYo+nCqZ3jkcu7RPZLxlx YoOA== 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=MmALl6+SrAgZGE+y4AHRDA6ukcJz+jYrukcq8t6BAbA=; b=P8o9EnfsQyGzVWliOgg0BnBBQKvApROq/FQj7+IiEN4ly/2LZ+h80vyZzCfcZBUQ9F iSRRJx1kRhdcoI2FCNptSzijBnqZE/J2HD8bh0X7V12/vi1ZQtTfXyncGODPIVfV4wSk oinp4P3kaUd75I2UHZt/Zg5s6R2WG6Re1up6TpqQ1kh27mCcQOzoEAPo8/JQNYCoeo5V AvWK8Ig27dekXms98lb784HQcoYtFfDPnk9wM/3me1FFSG0xNAAXQa4BA0NTh/OSXaTi w8dTFAGURwvAKxiWaBh0E231V1W8N1vJSCZNkxF8yds9401NVbp/Ar2L0EMdqdHOUQTv UDyA== X-Gm-Message-State: AOAM530xERdEGhx/juKhURmnGv5La5SfvrQ97/kaxVz7njx0DY2xPtqv AhJO2Q4e3OXJXn+I5Mn8C6/FkOzC4gJZ2sXA X-Received: by 2002:a05:6830:1e6e:: with SMTP id m14mr626268otr.215.1621449075289; Wed, 19 May 2021 11:31:15 -0700 (PDT) Received: from localhost.localdomain ([45.235.253.15]) by smtp.gmail.com with ESMTPSA id l9sm28428oou.43.2021.05.19.11.31.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 11:31:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 23/50] target/i386: Reduce DisasContext.vex_[lv] to uint8_t Date: Wed, 19 May 2021 13:30:23 -0500 Message-Id: <20210519183050.875453-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210519183050.875453-1-richard.henderson@linaro.org> References: <20210519183050.875453-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Currently, vex_l is either {0,1}; if in the future we implement AVX-512, the max value will be 2. In vex_v we store a register number. This is 0-15 for SSE, and 0-31 for AVX-512. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Paolo Bonzini Message-Id: <20210514151342.384376-24-richard.henderson@linaro.org> --- target/i386/tcg/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c index 61c0573c2f..1367e53e4e 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -97,8 +97,8 @@ typedef struct DisasContext { uint8_t rex_b; bool rex_w; #endif - int vex_l; /* vex vector length */ - int vex_v; /* vex vvvv register, without 1's complement. */ + uint8_t vex_l; /* vex vector length */ + uint8_t vex_v; /* vex vvvv register, without 1's complement. */ CCOp cc_op; /* current CC operation */ bool cc_op_dirty; int tf; /* TF cpu flag */