From patchwork Fri May 14 15:13:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 438924 Delivered-To: patch@linaro.org Received: by 2002:a02:b78d:0:0:0:0:0 with SMTP id f13csp439066jam; Fri, 14 May 2021 08:24:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwNANwArkwbYASvMvugQYMmHCOj2FNW1KyNSRAwRpLIHzAxTAIKIOXeJWHgczIedWprMZw X-Received: by 2002:a05:6e02:1d13:: with SMTP id i19mr24253519ila.230.1621005865174; Fri, 14 May 2021 08:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621005865; cv=none; d=google.com; s=arc-20160816; b=VKd/fAI/pJkcD5txsEXFaKPrXeia7WgIitfMXFazZEt+48Xxiv5ORVzcNryD3NlDoO 51d60ZKLfw1t802VYdmwUjp0WEeYVun8FSHfIuR066i4dUALpYcwxeA2alstkHQlhXWe i17UwhkCwvQ0QVt4dCRwfVLPmQU+Sq5JmfQs0jm0o8pPjHNWUBnWN3VWuJEy4rHB3jGv TlDWe3yipYHRMLD1i2lMGxgesCoNDuaTZ0j669hOLAcMPJCzBTSqWPSpG3AJxHjXmhyR gnF+frecBx6oel+k56iplIMaNNgN78Cm6/ZI8JOgnSR8NZme8xkJF5A6iI/9vv2rMJfX cQ6Q== 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=3h7I7fG248RECND44leECmVPoKr2IUswvnOcmS9+8lk=; b=Wgc7k1B8MUe5G8Oi7JhYqJyQ8Gxw6Or9XogfR4n32/Gb6Bud2qY40aogQVY6+s1hY4 hx21zxQ8w13Y7r+6rYRWbUXUADl0u9LtS6I7kfsxvuTpDwR8REACWIHhYYQ6tZjINgB6 IuLgKo6oqnG42OrawsTfg4nF29jrXtQDZJUwEeGTv6wAQ7sRZ1EtBXeRxZejyMKxCPAR a3mwgFjojwMKaFHrYh8m6lrZACV/Ab1hps12gznX7dt4Rxkc83sxgcqF5xaEU/8Khkcb Tl/gKKIP0tonJRKv+Yb94oa/6afMm3GridOWPFDL19C1fTszMTTFeFchM9oBC31odQM7 o2/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bV+3v2nQ; 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=fail (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 c1si7434483ilr.31.2021.05.14.08.24.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 May 2021 08:24:25 -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=fail header.i=@linaro.org header.s=google header.b=bV+3v2nQ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhZfs-0003G5-Jb for patch@linaro.org; Fri, 14 May 2021 11:24:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhZVx-0005xe-Gh for qemu-devel@nongnu.org; Fri, 14 May 2021 11:14:12 -0400 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:45761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhZVu-00073y-7B for qemu-devel@nongnu.org; Fri, 14 May 2021 11:14:09 -0400 Received: by mail-qk1-x731.google.com with SMTP id 197so28987579qkl.12 for ; Fri, 14 May 2021 08:14:05 -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=3h7I7fG248RECND44leECmVPoKr2IUswvnOcmS9+8lk=; b=bV+3v2nQKXBPgBF1aBMdV00ikK1P3JaR16hHVoRswPPufOroZRmdn+UeIGdaKjO9aO oWbiKP9zJSVnpJYi8aeF7cxNReEYbB1VQmHxMDrcxD0PpEkyKNKV/gvYLxn0BkFdgUQY SVRQJRduMnMwJmc3l4negKMFFd/2K/CMhXTeJny3IqdHmZlX02FSgfcanl3PvN4DUWZC EMPTHAACqHEFd5KcS1eDrR2wLCs8ereVeo53yuUTrHHBb+ONHMKu26+ty3bpmPUyh+nJ L6kGebsCqjZa/rlevCSPKrVF7wTMMYcH/MOGfFnvcTRbd1hN7DHXnIuy/gRICuPj3lER pFMQ== 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=3h7I7fG248RECND44leECmVPoKr2IUswvnOcmS9+8lk=; b=bhkqWov9Cv8bWIfAhdGZ4Xu5/Uc+3V2v8rlcbTNv4sjtV/guUlhB76LjUHD3om6Gi+ bZVPOsoZlPMZQi8+tcsbDVYPPEvF0mNnZvCxbJupMA1UNuxlJ//Nn25JEFz0YzpgtNwz VphIKKY1caLNTogijG0zNwqYjAFC8b6FoanwgiZDmkHQufFX0PgU+TTp+h+ISxgACjmV eUPhSHbjrr05YpRvRZeYHsOgIo7r1MwFYZQuGWXVds5yaEqVBtsxiAn1I8ymt4W1ALpR 1viUpgrfSuzPkCaBuzWs3TgerESaLPT7tpIC2Pi8Oy6xne8Zjye6cwINZ9/LUts11jxy CLEg== X-Gm-Message-State: AOAM530eDKV+11xhAXbZUhPiFhdwj4TqVEtMoQnBFhwLRTvrYtBh3FJ7 WY/OYZl54qT8r+Xs0IOPMuF2QfQtNXGoSiKMZxQ= X-Received: by 2002:a05:620a:14a5:: with SMTP id x5mr22854026qkj.143.1621005245424; Fri, 14 May 2021 08:14:05 -0700 (PDT) Received: from localhost.localdomain (163.189-204-200.bestelclientes.com.mx. [189.204.200.163]) by smtp.gmail.com with ESMTPSA id u6sm4778966qkj.117.2021.05.14.08.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 08:14:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 23/50] target/i386: Reduce DisasContext.vex_[lv] to uint8_t Date: Fri, 14 May 2021 10:13:15 -0500 Message-Id: <20210514151342.384376-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210514151342.384376-1-richard.henderson@linaro.org> References: <20210514151342.384376-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::731; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x731.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: pbonzini@redhat.com, f4bug@amsat.org, ehabkost@redhat.com, cfontana@suse.de 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. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/i386/tcg/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 Reviewed-by: Paolo Bonzini 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 */