From patchwork Thu Nov 14 01:12:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 843100 Delivered-To: patch@linaro.org Received: by 2002:adf:9bcc:0:b0:382:184f:390f with SMTP id e12csp48937wrc; Wed, 13 Nov 2024 17:16:22 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXQWxp4fjSgPJc/dlheYYX35r3rkGYlpnYKLj1vlp3qshpgzF+BgH4TmtZgoSldztwjP8u+hw==@linaro.org X-Google-Smtp-Source: AGHT+IFgpzwQVnLnkqc47cFGVRINJl9JiAFtXWFP9n7a48vYT+cHhHPeCU3iRDH4Sm951osAAjcE X-Received: by 2002:a05:620a:1786:b0:7b1:543d:c9f with SMTP id af79cd13be357-7b331f26c48mr2702394185a.62.1731546982239; Wed, 13 Nov 2024 17:16:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731546982; cv=none; d=google.com; s=arc-20240605; b=Y1jMwtSOJopWYRDwLj9+dLz/+7bRjBfKXQbsR0wQbj8eTJRj8BcpLBqCcLPMZxeHap 5nPtulokBVPL9GSn/DYkHdWtYEHTEtxjhRaCG8qF4aicBam4t2EdQwvCs0mOohOvTmFG LaZQN5CZUw/qyYAntzJbumnjg98iWIF8X7N8oNDxz/Y0nfcJAEIRGJbk2D1unyOaMhVJ BjbrW0AUPjjEqV5bHX/Vh6jKnNwR0B9uGV6o55Mpa+gNsmBghAl0LWuV3uvDn4bCBoW+ 7KI2uxDaa3J40FXHoPR38VxUakMKx8WpdM71rpKvKvWZ4sO8YUIr7bpzNk/dn+yIwBUo aY8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=YzuvHkgFNpoK/g6N/GhAbq9D9bCDxAJSB1ivyjDA1qE=; fh=Lpqus2lRhh08wlQStwqJAD0OsDRPlIO2F5dszgbmUt4=; b=S7UILPbVacZFEOLZNFRfyOQBsgRjllcKtEoiVzNzbel6dCWzY/jDHbOP1lqFYBS6JF ME8q+lTsYZopowI+TTlv/g1OBe+L7P+FDtH//wG4ba/Xfh+gGFz7BjvkvygPNXnmxRtT oygLqeBi3MnvgWG6/RTLHzSG5oPj8uXAg1v3gLKdEwC4J7FQvm/Lx25rajjb/XEDgQts 7gquCHNrFFeE0y/FGTgveXfffT/C0zL3ixO55wRGjcSXn+2QkZ9VP1dx9XsXWQ8hFb6f LkF7KTY3qJWN0M2OrbeIexEffpJ8OkEPBlUtQMYEaVqwiTT2BLXNXIUnIke3sNpfiME7 uWwg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aQnfWdM9; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b35c96fccasi4756085a.40.2024.11.13.17.16.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Nov 2024 17:16:22 -0800 (PST) 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=aQnfWdM9; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBORG-0007sh-Gd; Wed, 13 Nov 2024 20:14:26 -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 1tBORA-0007lt-8G for qemu-devel@nongnu.org; Wed, 13 Nov 2024 20:14:23 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tBOR4-00022X-6e for qemu-devel@nongnu.org; Wed, 13 Nov 2024 20:14:18 -0500 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-432d866f70fso952015e9.2 for ; Wed, 13 Nov 2024 17:14:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731546852; x=1732151652; 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=YzuvHkgFNpoK/g6N/GhAbq9D9bCDxAJSB1ivyjDA1qE=; b=aQnfWdM9oUqbizCzYhJjNbp8xrFa9/tb4ZWqmgHal3+yBBjYNABz5XiRscg5VcdRcs ZRBaEqzw8j9k16cudcI0ZxdJANG3smrjOFEOsnmf2zIMAO8G5xjQNuKXS7k+tMtAimqB MUeIA+isXQhcvk6SFGvgr5ocv+8hWYfjhvhKx0rhLTx3Snw9tfwyI0c4DGuswcJVIevv MF8psvDNJLq4hlcdzUkB6L1OwnARYLtxuo8iuxxR+Lujs0MDgbv3EyIw4giX7Or9ORop qwYg88kWc3+rla9uVJWQht+omGJ3WnZ6zwqztwQklvk0IXtWl3r5b66xDlInTHw5f5ZK 2www== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731546852; x=1732151652; 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=YzuvHkgFNpoK/g6N/GhAbq9D9bCDxAJSB1ivyjDA1qE=; b=bl9c/dsEQ+OR4Zx3Nm+ZPFseNO3RnMuEFWNSMJ/lCNWZ2/Iw0fw6/W2X+dXASDgZhm tzSpQstwodTaDzpo/Pdi0PWhmzbtjMH9EmyUc2bLbX/kgOvLD9cPQ4EfRQB0Sm0OjXL2 7gHn7C7BznjFZnJLKACkqBBh5JNtiqaOXRHTIzGZZrqGIXYKhWksM/R2x3BUjL8LGWDt wALZqZ5pvuau2IvMT9iw4yQOZ1Gr4An6PwiIak6uxcrTV75iJwT60/oYta21WPZVokAw f+KCodHvATEQtgUi82uxZOMSBXm5f5lBnCSf+IOTHXd/0gXB8wiAYuoAQm/PDxs0BCC+ fkeg== X-Forwarded-Encrypted: i=1; AJvYcCWa1OjjnZCSOZSJ7j5bSca/wqISpyPLCfa5CSjEu8ELRpebyprKelTaJhq5hpZOeTJxOOkHNATqy0h1@nongnu.org X-Gm-Message-State: AOJu0YzIlVy+Sueeu6QDBDgDvVtAnc1itn0ipMgMxwXOg+iqikcSRMSg uPnr1Ac5okHDKsmKbHGhRGMzkKQ6+N6t+KiVHkWGgDzXBdYapSPzZLqqefLvJas= X-Received: by 2002:a05:600c:19c8:b0:42f:7ed4:4c26 with SMTP id 5b1f17b1804b1-432b75002b7mr202791785e9.12.1731546852174; Wed, 13 Nov 2024 17:14:12 -0800 (PST) Received: from localhost.localdomain ([176.187.209.238]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432dab78881sm1520105e9.13.2024.11.13.17.14.08 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 13 Nov 2024 17:14:10 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Paolo Bonzini , Richard Henderson , Anton Johansson , qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Thomas Huth , qemu-arm@nongnu.org, Peter Xu , Pierrick Bouvier , qemu-riscv@nongnu.org, David Hildenbrand , Peter Maydell , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-s390x@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 06/24] target/rx/cpu: Include missing 'exec/translation-block.h' header Date: Thu, 14 Nov 2024 02:12:51 +0100 Message-ID: <20241114011310.3615-7-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241114011310.3615-1-philmd@linaro.org> References: <20241114011310.3615-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org The TranslationBlock structure is declared in "exec/translation-block.h", along with the TB compile flag definitions. Include the header in order to avoid when refactoring: target/rx/cpu.c:50:42: error: use of undeclared identifier 'CF_PCREL' 50 | tcg_debug_assert(!tcg_cflags_has(cs, CF_PCREL)); | ^ target/rx/cpu.c:51:21: error: incomplete definition of type 'struct TranslationBlock' 51 | cpu->env.pc = tb->pc; | ~~^ include/qemu/typedefs.h:116:16: note: forward declaration of 'struct TranslationBlock' 116 | typedef struct TranslationBlock TranslationBlock; | ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- target/rx/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/rx/cpu.c b/target/rx/cpu.c index 65a74ce720..945ae6e9e5 100644 --- a/target/rx/cpu.c +++ b/target/rx/cpu.c @@ -23,6 +23,7 @@ #include "migration/vmstate.h" #include "exec/exec-all.h" #include "exec/page-protection.h" +#include "exec/translation-block.h" #include "hw/loader.h" #include "fpu/softfloat.h" #include "tcg/debug-assert.h"