From patchwork Fri May 14 15:13:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 438935 Delivered-To: patch@linaro.org Received: by 2002:a02:b78d:0:0:0:0:0 with SMTP id f13csp445125jam; Fri, 14 May 2021 08:32:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2JgW6e/fCpmZQ+P5a7NEvyjZb35Wq14DXhGHsD2dlUH1pntomrrfH+MEgXWR5XcKCAv3U X-Received: by 2002:a5e:c202:: with SMTP id v2mr13182011iop.89.1621006363922; Fri, 14 May 2021 08:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621006363; cv=none; d=google.com; s=arc-20160816; b=Jv4/aC6ChM6iiZB0jvwbQO/eO3om30OpnJdMy0osDm2/loa9IqU9H9FOhvnndDsLEE BthDngmL3bSSUkFcyUewRksomkGPssqR2tTIxt1z32/WOKKAKaHqyVhVWSeP//X46v+U nIR1kKtt4YEsSqWTjf07UMNlJD8krg9dEuMiRbbn9JplXCzozTf7dRipwLO0PLByNAGh q9bH+RdHZz3XYnQiSwYpthsNitbKsNytxRVBkmRRrNQLSyRcyzlK3PjkpUkIHkbpYbBE I/3oituU5jJ20V8i5RKipP9zW2F8CFzVCsRx/DHIlANdOZjuCWk8qPJu2KYLuqPNWVdu APuw== 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=faTSI+eS0bqFqEREdWJLgJIJnnf/2ZzvZH+BYJ5ylfM=; b=eDL/cd72H0ujlXWBo4Vw/QIE9GXnIwuBu3UGJR0gcupZt51rEqp0U3tHOFC9byjf9O dF1ol3P6iI6K7W+SKFAr6pPiFv4/0qx/+nhRa805RS7zjdspJvvOM6le6qYGoxcBLloT QLoLhuJg7itKyF3vmbFFTRdPhGFOULwLT1I2G0K/t8bIX8nB7s2a08HBxTz8llpg2o2V zswcmoJ6byCbXtigm6lv5joBvx4zmIK/EWy/r1nhLoSwaVMR/9L5MNb8snA9LXdCJ0gQ zNwIMIqKMBFurT7YWrkU2WMR+R9k2Av+Z8lDmtfXphtie0qNvi8Agdypva1bZIizuRj+ EtZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=xKZAhxZY; 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 a13si7700935ilf.41.2021.05.14.08.32.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 May 2021 08:32:43 -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=xKZAhxZY; 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]:41572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhZnv-0000by-CL for patch@linaro.org; Fri, 14 May 2021 11:32:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhZW3-00060G-M9 for qemu-devel@nongnu.org; Fri, 14 May 2021 11:14:16 -0400 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]:34452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhZVv-000746-Nd for qemu-devel@nongnu.org; Fri, 14 May 2021 11:14:14 -0400 Received: by mail-qv1-xf30.google.com with SMTP id o59so2379720qva.1 for ; Fri, 14 May 2021 08:14:06 -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=faTSI+eS0bqFqEREdWJLgJIJnnf/2ZzvZH+BYJ5ylfM=; b=xKZAhxZYENEFEt4Px9ygMyhuYvAsJTenUCmesD0ZoXAyjihL0DL7rlrrbECLZ948cU B/z5kBbiL92BKUNq5/+d+cyLOVDNQ4FqxJuyFKDFOccv3fERVWUjjC3c947wZGOzWVxe iY2XEFVm6xsBiQgqhmxkpyOKpmW82PjW4WuV5002HOGLMZ2aJ+IFIFLSp57/9aD+7GPR 5AjsFhftIOmv8xYq2OcNFLvrRYnFGGoxDTyiiYTMVHjRhU6uwe5GErZ00IkwRO5rt5jM JlauHhozdf01aezep6vxNM9yTylnL0WbWBZb60PrrQo3Syo97/DITrW7fF3dyi41Y87I mdBQ== 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=faTSI+eS0bqFqEREdWJLgJIJnnf/2ZzvZH+BYJ5ylfM=; b=onXN3FVHTkBdOFVbLjXksTfsChUPI9LMnf06zNrvJRVdmQ+RKhVwFbbEpV91vBaFJJ hxldin0WMycNV2V+chkSwoRBa8AV4w4doTlWLPm8VFvTiZ2D5nw7AUNmFxilCJrepO2W 9/6gKWghyjuZuq+ZvIubkiA4/lVGv4DTAOl7Znfm40CPWmGcHmMkAux8xT9PIK4UfagI wiRzqKUx+gX0nbz7Rg3gEsokMIHMDggPmTKe32sybPeQ14+ibhfkSdcWxx5BHU/P4rRr tYNbfMzPRUsjRCBlCvnZSO3eJboMr+0hOyCEUe4zLV6K6v+MXwG18LVFJV8CeIXOgNLW T1aQ== X-Gm-Message-State: AOAM533bckyQxzb323FylDG3T/gPmkJ7s/07xD8JVfYX8FtvwLvB0jga XAjKDP79cQFgvhZPUWSDJZxYGMe6fdDlqL2cmcs= X-Received: by 2002:ad4:4ee4:: with SMTP id dv4mr46631078qvb.10.1621005246291; Fri, 14 May 2021 08:14:06 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 08:14:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 24/50] target/i386: Reduce DisasContext popl_esp_hack and rip_offset to uint8_t Date: Fri, 14 May 2021 10:13:16 -0500 Message-Id: <20210514151342.384376-25-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::f30; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf30.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" 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 --- 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 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;