From nobody Tue Apr 15 21:44:25 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=1615067476; cv=none; d=zohomail.com; s=zohoarc; b=geF9fQdKGPlx7plB+2LfyfD5dBnq2hEM4mzz3saH7YsjVtXg7b6QPZYeg2fW2CFg/G7Hq4HSI9NAS3mjvlu0fJesJ9GzaCVEooczUDm4GUYvL808fsQisUPXO0BRRz5BMZCbGLgwaKgN53MGZwa1U1LeJ/ap5SjkQtrYf5N2ZhE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615067476; 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=F8oLm+b5MpB59nkWYQpAlXOnlN0WpiVVfnOPsmvYmdk=; b=k4/OK4Pb3i8ipy6+yOm5Cg+Zz5iXsRSLSxqMtWdVf3NRamR8AVm41N6QA+7MbYSxlrwgvgtMnx6vOjjNq2P+y5fUeDI+ZnYaD4FsCWRrKYXtxER+DKhXOzslLkQ33sA1wjdfIs8g4lzUEGgU2gbYCMMHuR7P4CPb6/jkxNZ48WY= 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 1615067476050892.3963984119854; Sat, 6 Mar 2021 13:51:16 -0800 (PST) Received: from localhost ([::1]:44524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIepP-0003oV-2U for importer@patchew.org; Sat, 06 Mar 2021 16:51:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIebM-0007Os-TU for qemu-devel@nongnu.org; Sat, 06 Mar 2021 16:36:44 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:37542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIebL-000310-2o for qemu-devel@nongnu.org; Sat, 06 Mar 2021 16:36:44 -0500 Received: by mail-pj1-x1030.google.com with SMTP id x7-20020a17090a2b07b02900c0ea793940so995238pjc.2 for ; Sat, 06 Mar 2021 13:36:42 -0800 (PST) Received: from localhost.localdomain ([71.212.131.83]) by smtp.gmail.com with ESMTPSA id r30sm6365616pgu.86.2021.03.06.13.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Mar 2021 13:36:41 -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=F8oLm+b5MpB59nkWYQpAlXOnlN0WpiVVfnOPsmvYmdk=; b=Ndos8emaMlLeaoogiRUa+YsIPwrZhJseoGnQL6HO8OKslWjGk0JePnohKxzAnb/NUk U0MQKw4gf7mbFj/TfDilaaWsutm+6cvj9qoal7irkWLuNPhVQKLsoJu2EPgodUk8vXtr 1eltfjhn6y96vGvzKSygiuPfX0mIGn45XKYUMb6rx/Fvo3iQPAy1dlsJNEAAJsnKQMVL u03SwA6EhqicMtCCNID26C1Co5o2/lj4VdNMZlTxBsBF/q8SVPTkcfQQJkJhyTrLyfMQ Y9KtT6jKpROKffWmBupNqNZ8Qdol1JxfUMnKdJ/8JDkw1sDj7Kt81ywJQkeT7hyIbKNQ 7UPA== 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=F8oLm+b5MpB59nkWYQpAlXOnlN0WpiVVfnOPsmvYmdk=; b=uRr8W7I+utKq/wYrjyTAW9IVyzdWIb8zv6TGNXf9a+ZQk5oxc0S3u0zaieA7Rhlct6 KKxwcBJf9PGwPjU7h0Q0F1Ahz48oUil77JuYMeI5fw6OdFzFiWJ2ZQrsm/ldRMV3vM3u yAObpjBByWCQIEIAujTI1/6TIHoJzf0VtJtriXTC92MJ3cUsvOOViMPEo2UeSZnN1PW6 yHK5ojIfPHFHtlkqasCukBtusc+ZDM4U6j9tLngkxhUHWdzeRFrVRTu4ZJwZTje6Mc+l RfP6Et+xk7OxfQqAlLEzgeicN4ubmxLLx3U0KLY6u+PvDL/1LtDYXZYw5uRc2Vq5015o x24A== X-Gm-Message-State: AOAM532jmoM4bHby/4ORha51RKgiwFsBfs73Hg/Hq3ZJdAWSRP8bMSph WHs5fFk2liMZ/423j3vJbPQOaKi2F9MxXg== X-Google-Smtp-Source: ABdhPJwT49pfTORyanf6vHA7K/9ao9a2N8u1xE1I/sr7fvjNOqh/vHqrKoR/NPUOsshHjvlJPLFkig== X-Received: by 2002:a17:90b:fd2:: with SMTP id gd18mr17221543pjb.115.1615066601707; Sat, 06 Mar 2021 13:36:41 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 26/27] include/exec: lightly re-arrange TranslationBlock Date: Sat, 6 Mar 2021 13:36:12 -0800 Message-Id: <20210306213613.85168-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210306213613.85168-1-richard.henderson@linaro.org> References: <20210306213613.85168-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::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.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?Alex=20Benn=C3=A9e?= 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 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index acf66ab692..a262dd5804 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,14 @@ struct TranslationBlock { /* Per-vCPU dynamic tracing state used to generate this TB */ uint32_t trace_vcpu_dstate; =20 + /* + * Above fields used for comparing + */ + + /* size of target code for this block (1 <=3D size <=3D TARGET_PAGE_SI= ZE) */ + uint16_t size; + uint16_t icount; + struct tb_tc tc; =20 /* first and second physical page containing code. The lower bit --=20 2.25.1