From nobody Thu Dec 18 19:37:50 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1614708808; cv=none; d=zohomail.com; s=zohoarc; b=YJxvMzRB6ufU8tXAG6OJSAaos6cy9/xTsF4/bTnCj8gHtH0REcjHfkqDvEXDcwwkDTW5fbDuAjf8hiPYhDFfVTldG9nLbZlF8wGenLZRWm490ptVBCexlFOsaUG0YQyIv7nqc/KdU0gNThFQHaFZBNB7xoPSv7zCxdpzVH8Fnqg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614708808; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=aOf1cOZjDd8LNAISdQKRprouUUYWtBc1pn+qViLGVw8=; b=b7Mp7LUHY/viOB1mvoQUaR9X5BkxhxUcpMF1hufN9qRofLMqvz/lweE9BsZBrlW5e9+2WxXJzygkisOHU6ZKfysEUPJTzqP62nduV6pZebqBr+bARAwZJ4F0YHSxjtfA38VQ9vi97YzcpNINmJ41b2QShMdKL9IxDEFgA4I9MF8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16147088087441023.517069918545; Tue, 2 Mar 2021 10:13:28 -0800 (PST) Received: from localhost ([::1]:50606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lH9WQ-0000xs-GD for importer@patchew.org; Tue, 02 Mar 2021 13:13:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lH9Ho-0003Il-NO for qemu-devel@nongnu.org; Tue, 02 Mar 2021 12:58:23 -0500 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:44384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lH9Hg-0007dI-L3 for qemu-devel@nongnu.org; Tue, 02 Mar 2021 12:58:14 -0500 Received: by mail-pg1-x534.google.com with SMTP id a4so14325479pgc.11 for ; Tue, 02 Mar 2021 09:58:11 -0800 (PST) Received: from localhost.localdomain (174-21-84-25.tukw.qwest.net. [174.21.84.25]) by smtp.gmail.com with ESMTPSA id gf20sm4232234pjb.39.2021.03.02.09.58.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Mar 2021 09:58:10 -0800 (PST) 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=aOf1cOZjDd8LNAISdQKRprouUUYWtBc1pn+qViLGVw8=; b=PT4FxuaYl1otNlvVZDjG/wvJmuFdsVUmN7BsDAL/c6t5SPAqE55UYXDAVGOtP+iHAp ShQkPDhzlb9rr7TBefKAfgpRqltUaxZLrmtxpp5hijnHApBJGQJM6TT7BIvIv2uzY1y5 GUPD1cz8u2Hi/RhKLz0iEYw0aUzCaUbCiB0G8Ue09BMpKAzzrh02+88bPFAOq4P4/O2K DdpauTf4ayJN7Abw3p6VgsR5j3DxYGJXCi4eLKznBjJGaOnnLhHKmMDAkVUgxXyLchoj ZBtk57EwxAqTVguGVUMx+MZTEWBLQvFYR0DhOz0RAVtAGUKPp8BT9pzMl41lkixm6sT8 D5iA== 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=aOf1cOZjDd8LNAISdQKRprouUUYWtBc1pn+qViLGVw8=; b=h6VJYTpRH6hOXtZT/9TAu1f1fvmsgjG0F57e0ECDDTlrCkOIkJ2xSPDxj3QQpm94tS mmzJa1Wx5Epc/Qins/UaZ5RrfoEqmPt1LfA63hHQ1ctkJnMXqWndrsb0S10plaBth0dK Kxhqh/kxV+xxXu4x73covkEysPI5Bl2YngW0xs8W6ZHyL+QxqxELTzpl47mQ8sj8r6+N Np7B+1azKHdJfyjl7DmcV2pplR1b2xiEW1qq/R582SFjlqQ1xIBbpJekn4jPyTEDJTER m/bIBPhmzJvfuG/3vpDH6iR1V1P2YPLghe28fJTtk8OHrKK/SoOrwRti0MbsHNGNN90B KlnA== X-Gm-Message-State: AOAM531pDmfKCpBn7BHG4BpaFQucdx10u7POQd0D5zLVe29vmLASaoua U6sGLwCYbrB/7dnpBgkbhC71lAPDjvkbLw== X-Google-Smtp-Source: ABdhPJwFTcvW4B7DWfrUelagSjR2Bqm8rdE8rIIx7eq8sKoL0gbG9phiYL1m5XQIV5rmE7JXHVr69A== X-Received: by 2002:a63:f1d:: with SMTP id e29mr16527458pgl.98.1614707890626; Tue, 02 Mar 2021 09:58:10 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 26/27] include/exec: lightly re-arrange TranslationBlock Date: Tue, 2 Mar 2021 09:57:40 -0800 Message-Id: <20210302175741.1079851-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210302175741.1079851-1-richard.henderson@linaro.org> References: <20210302175741.1079851-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x534.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: alex.bennee@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) From: Alex Benn=C3=A9e Lets make sure all the flags we compare when looking up blocks are together in the same place. Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210224165811.11567-5-alex.bennee@linaro.org> Signed-off-by: Richard Henderson --- include/exec/exec-all.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index acf66ab692..75f8c3981a 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -448,9 +448,6 @@ struct TranslationBlock { target_ulong pc; /* simulated PC corresponding to this block (EIP + = CS base) */ target_ulong cs_base; /* CS base for this block */ uint32_t flags; /* flags defining in which context the code was genera= ted */ - uint16_t size; /* size of target code for this block (1 <=3D - size <=3D TARGET_PAGE_SIZE) */ - uint16_t icount; uint32_t cflags; /* compile flags */ #define CF_COUNT_MASK 0x00007fff #define CF_LAST_IO 0x00008000 /* Last insn may be an IO access. */ @@ -464,6 +461,11 @@ struct TranslationBlock { /* Per-vCPU dynamic tracing state used to generate this TB */ uint32_t trace_vcpu_dstate; =20 + /* Above fields used for comparing */ + uint16_t size; /* size of target code for this block (1 <=3D + size <=3D TARGET_PAGE_SIZE) */ + uint16_t icount; + struct tb_tc tc; =20 /* first and second physical page containing code. The lower bit --=20 2.25.1