From nobody Tue Nov 26 16:32:49 2024 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=1706417081; cv=none; d=zohomail.com; s=zohoarc; b=Kr9v+n75bqnUl72JxRq9Tzdxwn5bfWeKGHOYZ+Fw00CIMhoz9E5fpN+eVvPehwBQ1aNOJQ8xrM4VmMxMgKBF6icmfNfADCewmHVrr6UGpVfOkNJ5/xlqMXezhhM3LnCH03eirn3uLnn9onGvOS39XwJlFLHfmuisuLTVvq67hm4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706417081; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=4bfmq9Mg4HxfU53OW0oPle9hQIH8zXg09YsWAHRVD1c=; b=WbR+3kQkujYLFMzSfM/YjstLhZ0snboL4c4D7+ycpnYSlVGsfUGUreBSVKq/2HmRwU6AV6c+/57OhgonDqz1tUgL1Uuv/+JbQ6lodJ+MES4FXm/ksY0wvYvGY8USYesVS2twBV+yd5IERJ/Ys8jW7L9hWdiGxtwfLKsls5sSDN4= 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) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1706417081862139.17946398783636; Sat, 27 Jan 2024 20:44:41 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTx0h-0004q3-7x; Sat, 27 Jan 2024 23:43:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTx0f-0004pa-62 for qemu-devel@nongnu.org; Sat, 27 Jan 2024 23:43:09 -0500 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rTx0d-0004Mj-I7 for qemu-devel@nongnu.org; Sat, 27 Jan 2024 23:43:08 -0500 Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-2954b34ddd0so313513a91.0 for ; Sat, 27 Jan 2024 20:43:07 -0800 (PST) Received: from stoup.. (ppp121-45-131-89.bri-pow-que-bras31.tpg.internode.on.net. [121.45.131.89]) by smtp.gmail.com with ESMTPSA id w24-20020a17090aaf9800b002906e09e1d1sm5631873pjq.18.2024.01.27.20.43.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 20:43:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706416986; x=1707021786; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4bfmq9Mg4HxfU53OW0oPle9hQIH8zXg09YsWAHRVD1c=; b=oMOjDl1Ybii2UF44Dm/KozkbX7FzH7gGHCmdhoMEX+qVtm0heOxFuhKKJaI7+9WfnC lS72teZ0eoHA3J9gQF5/eI7stMwXmmO8fa5cUAuYgIqM7YSyXA3oGqM6qcL4FUvanL61 NIgA9b95GszQW2He8pGtxkrYrY6kIHlri8W7+SmSBqzi+p8ys0zK6qa/eLXLKH5Ku7bi xI8BI2H0FjYjOqijbi0NppGfkNmFGnlw7+JWt8sI5u5IBp9KwW+Eq7HohP04+lZCLiZ5 e+ISyNyY+UGV+55fBu5JozAg2ka8GEsromGvzYPSlQ+5PdQVQL05reUub5BdoMuLTXvo dfDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706416986; x=1707021786; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4bfmq9Mg4HxfU53OW0oPle9hQIH8zXg09YsWAHRVD1c=; b=ohVB4dBx5oaGGSXeehQRr2UJG+jQOlQR4pYw9ax2V/rZiKprMZiFqztv6njvhwfaZr S1wKbLKX/jU8XmRjKmlSBhNy9hWeP/Ty3qHOsHUQfha0ijSGN6BCTWPG/tedXB2C1zV0 38OQog4xxn90Ln+zSl9PpbYao9SW/GytZaj2gNpNXVhafqloDZ3/GwrmkgLo2dBGnFGT o5QUb1gDxaxsAhZTJT8u0/miuoj9NKXS7CHUY2FrE9v4DYPeXQ9wqhdF3RMB3wbheq/G gopRWq6BbKa56gIppjpxN6FUV/ewXk4E6bmbea7EXw4m8wrkYl1HEGbXNVhp/yN4t2S9 rpxA== X-Gm-Message-State: AOJu0Yxx2jQBmp1PNxhDsYruxKUT0CaiYkTxEoGiqBjA/GowAz26k96n IuyLg50mJTcs/Elviin261UNckMqS2/cC30Qjqdhn1zBIJHOipi97AnPpldZ+89runCSslmkxxx SYWKSvA== X-Google-Smtp-Source: AGHT+IHSxmkYaNVW+tpEbBadq3HejzPPH+5J3zGBjk1wnyNuIc2YhbpnYA07N2z1bjKPMr+aTtLaAg== X-Received: by 2002:a17:902:b48d:b0:1d7:323e:f362 with SMTP id y13-20020a170902b48d00b001d7323ef362mr2525328plr.120.1706416986320; Sat, 27 Jan 2024 20:43:06 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Ilya Leoshkevich , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 19/33] tcg: Make tb_cflags() usable from target-agnostic code Date: Sun, 28 Jan 2024 14:41:59 +1000 Message-Id: <20240128044213.316480-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240128044213.316480-1-richard.henderson@linaro.org> References: <20240128044213.316480-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::1029; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1029.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1706417082731100005 From: Ilya Leoshkevich Currently tb_cflags() is defined in exec-all.h, which is not usable from target-agnostic code. Move it to translation-block.h, which is. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Ilya Leoshkevich Reviewed-by: Richard Henderson Message-ID: <20231212003837.64090-3-iii@linux.ibm.com> Message-Id: <20240125054631.78867-3-philmd@linaro.org> Signed-off-by: Richard Henderson --- include/exec/exec-all.h | 6 ------ include/exec/translation-block.h | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index df3d93a2e2..ce36bb10d4 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -459,12 +459,6 @@ int probe_access_full_mmu(CPUArchState *env, vaddr add= r, int size, =20 #endif =20 -/* Hide the qatomic_read to make code a little easier on the eyes */ -static inline uint32_t tb_cflags(const TranslationBlock *tb) -{ - return qatomic_read(&tb->cflags); -} - static inline tb_page_addr_t tb_page_addr0(const TranslationBlock *tb) { #ifdef CONFIG_USER_ONLY diff --git a/include/exec/translation-block.h b/include/exec/translation-bl= ock.h index e2b26e16da..48211c890a 100644 --- a/include/exec/translation-block.h +++ b/include/exec/translation-block.h @@ -145,4 +145,10 @@ struct TranslationBlock { /* The alignment given to TranslationBlock during allocation. */ #define CODE_GEN_ALIGN 16 =20 +/* Hide the qatomic_read to make code a little easier on the eyes */ +static inline uint32_t tb_cflags(const TranslationBlock *tb) +{ + return qatomic_read(&tb->cflags); +} + #endif /* EXEC_TRANSLATION_BLOCK_H */ --=20 2.34.1