From patchwork Wed May 19 18:30:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 442490 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp1594028jac; Wed, 19 May 2021 11:51:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqwJbsttAc4Xsb3CHGc/9ZUxjoIjqGGygy7mrnVuMymSSB6qP1M1bAvcQMgy1WMTtxoEs9 X-Received: by 2002:a05:6638:1482:: with SMTP id j2mr480632jak.63.1621450315339; Wed, 19 May 2021 11:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621450315; cv=none; d=google.com; s=arc-20160816; b=k11+tPFVHUlcz5QZ35V7ZWpAn/0lZqhaHxP0GRL85XC2rEji7n7/Y/xSXLd3YF+COA +XWU7SbuIm69Z3r8ClnuHpekKoEbuHbTZhYlnOgErs+FQWCw6uBQ2t4k3FX1vslJ8DR+ +zoL9fxsyNqosQ9LlJAFwWvsUopPK5nubAGtLlf9Yf/ebyIJ95DHOXdpKzLCAqqC52jj EeJ3LJu3438n5keBRAeC6xMvZKFvDew3K3NGBeqy/qC5OHbONb67fcfqI8rZI4/twsaO AYh1oPbmwxVTKXZjHUXGsKEpsmUB3Igc1EX+MajItJ77/ymppyoTxOlQwulALgm9q29E pLGQ== 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=GrHhxNQ2eayYuE4IBP3WlrTHRS6oVMsMWIzwFX+Pnhg=; b=XhRSZAMX8qJOxNwp+uI68iy0SGV3xE/lGjo5CgwB5VJe3Qg92CYgsinlADKQOS9Gwm uvVUQ9jP3DgzoiPbCENN4G5gUhkq/u+Yn5dntCMJqua6xze+vN++f+2vfjMsxtKUiwzz cuI4r/hP1Md3wy3MZsDNibd/wDLZTyp5EPFjiS5ggty8FATQa7CZpzrlw2PjAMWQ1bP1 MQ1uQTREOEuBG3jANqsJkO1sh8Kb4J8SojEsSShDBDW6lel4vmi6Z23NHRCAjAvsy4F1 blVYATqSw4zIerBaRdC1oiRmWb6bwUkbq9h5+e0xq5ruKuiUwXx2OZL4H9jG0XoIQ+CG diFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zkE/VXXP"; 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 k6si420195ilo.39.2021.05.19.11.51.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 May 2021 11:51:55 -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="zkE/VXXP"; 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]:39128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljRIQ-0003xQ-N1 for patch@linaro.org; Wed, 19 May 2021 14:51:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljQyo-0004Mh-0s for qemu-devel@nongnu.org; Wed, 19 May 2021 14:31:38 -0400 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]:39590) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljQyX-0005kR-Lq for qemu-devel@nongnu.org; Wed, 19 May 2021 14:31:37 -0400 Received: by mail-ot1-x332.google.com with SMTP id d25-20020a0568300459b02902f886f7dd43so12620684otc.6 for ; Wed, 19 May 2021 11:31:16 -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=GrHhxNQ2eayYuE4IBP3WlrTHRS6oVMsMWIzwFX+Pnhg=; b=zkE/VXXPNobvU5rkMIboe4XMjSB50f7auI7KGHmSGTjq7ehWd3DYdR8DTpqzbtxHDQ r6lKlXjWEfq8s0bzPGBBxSM+P7lJGORDYCYZnrHI3k0639vsfZ3qGd3RLKbo+YD3dyaZ e5fVdOzx5r4tbErYtHYbFV0Mxtrc82YudbOcbeN/EUQrjbNfA8iATj+BT8gbSu+kM0fX CoOU98m/5kdJqg1AQo49woLI4gHhemnzSQljezNy+BcP5q38DcoYAE1L/9Vz3RXP9D4g HLeKI55GRFVZHiEjVmd8DyTnG/W69/0qdgBBabn9V4ZPS664Nk631k2pac3PNXuhJqM+ 8mCw== 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=GrHhxNQ2eayYuE4IBP3WlrTHRS6oVMsMWIzwFX+Pnhg=; b=CMfn2CqbPGWuDSzm3BHWR3/YUY36q6OYV24yw20XKU9E9fslKXqM/m967fd80J2oH8 RYI0zDjC120NDdw/Iz1sEJxp2kG1oDyvgOCSy84Kd1J70lZB7AxgPq4TrH9kY7Y17b6H Cw5bTqTFW4SF51idZg/5GqNhJhLP/gitWvtuiidAW2TTWdIgeR9Arh/ikwYT0jhNWNR/ URu2cX8hs3mpDp+KNcx9SGWog0cerqDNo3zIasqBn3qPwLDiD2JTpI5Lx5SFrJckreaX iHgf3VcdDxZL+bZTbn9dmQ7KOEmh9kf8LmT6DcY5chHiBQl7s/qv4v4v9bsEcNSqQQyH IF3w== X-Gm-Message-State: AOAM532A8cx8CV8wsuGnE9leKMty2Q6JDwZWN00RCdO5YSH+/whIu5pb NHj5C71Fjh08GxQEvc2dmBg5dRUk+3ZK40xU X-Received: by 2002:a05:6830:611:: with SMTP id w17mr637101oti.225.1621449076241; Wed, 19 May 2021 11:31:16 -0700 (PDT) Received: from localhost.localdomain ([45.235.253.15]) by smtp.gmail.com with ESMTPSA id l9sm28428oou.43.2021.05.19.11.31.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 11:31:16 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 24/50] target/i386: Reduce DisasContext popl_esp_hack and rip_offset to uint8_t Date: Wed, 19 May 2021 13:30:24 -0500 Message-Id: <20210519183050.875453-25-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::332; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x332.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, Paolo Bonzini Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Both of these fields store the size of a single memory access, so the range of values is 0-8. Signed-off-by: Richard Henderson Reviewed-by: Paolo Bonzini Message-Id: <20210514151342.384376-25-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 1367e53e4e..847502046f 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -106,8 +106,8 @@ typedef struct DisasContext { int repz_opt; /* optimize jumps within repz instructions */ int mem_index; /* select memory access functions */ uint32_t flags; /* all execution flags */ - int popl_esp_hack; /* for correct popl with esp base handling */ - int rip_offset; /* only used in x86_64, but left for simplicity */ + uint8_t popl_esp_hack; /* for correct popl with esp base handling */ + uint8_t rip_offset; /* only used in x86_64, but left for simplicity */ int cpuid_features; int cpuid_ext_features; int cpuid_ext2_features;