From patchwork Sat Dec 17 17:29:07 2022 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: 634859 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1465513pvb; Sat, 17 Dec 2022 09:31:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXukKp9kxZxDMzXbnr4M7JNCAy+mSndn6A6Qmkh/Ew1D7NIctH/8LWvLhP6//dfBNK6FVKs3 X-Received: by 2002:ac8:44a1:0:b0:3a9:7782:fd69 with SMTP id a1-20020ac844a1000000b003a97782fd69mr7841169qto.14.1671298318905; Sat, 17 Dec 2022 09:31:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671298318; cv=none; d=google.com; s=arc-20160816; b=Yn/vDCHu2eVqSV3/1EjHjBEKOf88A2T2dVl4tYOk4JlWdB9X1/VyHco94F3tHL5r9r sEx8QI/vk44ZJDj0N4Qv7OywpEzcSW2VuOMh1Of+CvPjplcJYuehxAF8usIam/PwnoHL sJwZFYr12mVxlOOV63CbvfKGXeZWLLOl1igQTUNGMlgC+Nq5WKSUA6FrTMOqJ7cXf/WI tbq14XYJUHG4TWYOZ1vRJj2do1h76vewi1XG8t33hM/FSwB2w00BwglTUIsPgX7PAkrz RJHidJvf/4wBXqqULG9WAKUXj9RC3ReJ+qUhu/+8C9exGF3E34VPiGZZbLLCzmNyYS6e sOCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=8puYA5pXfRf+1sAx/YhGhz4X/7vHxWP4eF1HMLfQ/pg=; b=hHfMIINHnuvx4Re7R7nZ/jpooZgZtiOZm9A/bAEOjpBPium8+sV3x8o1JGZnFQXIrA 9S5yT3QYxdHFeEnw22Xp5cPOaifM2g/onl5vjH+WrTfvgHlwEgI8O6zDMu0mrgL28Hex rgo+k26FMsJtLQq+FO3xiyPLNd1kqwMriMukmo21gSp7emIPH8pkWgPV9Pm++45z0IIh koGOkSTIGJppBQAWxvMxSmO4MLWIGM2QyEvts+GEYFfpPTnm7gt4aJNDSEPDuSbKRnaR RXrqhQ61W8S+IugLzkM61AgEUapF39e2HSOyZow8/8X1dHCojcdMcq9D7quUFVeS1lp/ dgaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=exXqxUsz; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v13-20020a05620a440d00b006fc94ea704dsi2557332qkp.675.2022.12.17.09.31.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Dec 2022 09:31:58 -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=exXqxUsz; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6b1l-0003J1-FR; Sat, 17 Dec 2022 12:31:13 -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 1p6b1L-00035L-FU for qemu-devel@nongnu.org; Sat, 17 Dec 2022 12:30:50 -0500 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6b1J-0002tU-Kg for qemu-devel@nongnu.org; Sat, 17 Dec 2022 12:30:47 -0500 Received: by mail-ej1-x62c.google.com with SMTP id bj12so12846611ejb.13 for ; Sat, 17 Dec 2022 09:30:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=8puYA5pXfRf+1sAx/YhGhz4X/7vHxWP4eF1HMLfQ/pg=; b=exXqxUszEBEoTGnuE1nd4LT88IeFXPT86bDiG9ZqD1yNPkFGGVPkoDU75QBcVVyYva S0Fo7LY7cQJtBqByYf+yVCTe35Bx4Uyo79EoyC+4iD54P1038ef8JO7Rs267HNejhhXP /czn1U0cLol3HJYLgXe6NdFdRMEy5Rz9XAGmFu3tLHI78M6yIiAIn4VLpsvueywVNJNW 2si+QCNBzZTrISaQ9uIootdxT9bfJLCtHFcstVSIECNmoChLBA4ww6kIzCz+24N9pvb4 sMhl7wvLsGQr6Ls8ZvcDgcyNot3t5wq6T/E+qGygVYYTyCG/QQqjvxi6YGlzdmvt28Gr 6iVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=8puYA5pXfRf+1sAx/YhGhz4X/7vHxWP4eF1HMLfQ/pg=; b=bYC6Dk21WpxASzHCauKpaOCsgHjamVCjUpjru7ZmParoKmzz/4gq8otVuADIIRbEE4 Fq3fNYVX+zsMJlFUDISa4+nNvoDyG9XDThx67FVD9s8AiQAxmN9UVovdQRWyC2m2fOsS ucfMiMfGOEyrnjudkPey0YEwgvhsN+3Ul5SoXt/TWqC0lRAQsTRdNK8N1f7j38p1Z0MV FI8pUzHt/hNHzJV1wzAcadWfFnWCYKD14qSwwjLlhVU0fu7ALz+F1fd8MzsI5yzXfdCG zdVmPqLwV8e4xJassuygO+y9x73TgGljC6fber7uKBzyb3xXvhVPn5C+RKNem+hglhZv /ldw== X-Gm-Message-State: ANoB5plZD6M2bTDhctn8fNxC/tXfwFmcXtLhYA9ZdjtxcgXF0qO4I8Uy DOmIaxRxh/MdHtagPOpLy7A03+fZpB9qtW7TUUQ= X-Received: by 2002:a17:907:1719:b0:7c0:f9ef:23a2 with SMTP id le25-20020a170907171900b007c0f9ef23a2mr51716123ejc.30.1671298243563; Sat, 17 Dec 2022 09:30:43 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id a2-20020a170906274200b007bb86679a32sm2198820ejd.217.2022.12.17.09.30.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 17 Dec 2022 09:30:43 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Max Filippov , Richard Henderson , Bin Meng , kvm@vger.kernel.org, qemu-ppc@nongnu.org, Greg Kurz , Daniel Henrique Barboza , Bernhard Beschow , qemu-riscv@nongnu.org, Song Gao , Artyom Tarasenko , Paolo Bonzini , Palmer Dabbelt , Mark Cave-Ayland , Laurent Vivier , Alistair Francis , =?utf-8?q?C=C3=A9dric_Le_Goate?= =?utf-8?q?r?= , David Gibson , Xiaojuan Yang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH v2 9/9] target/xtensa/cpu: Include missing "memory.h" header Date: Sat, 17 Dec 2022 18:29:07 +0100 Message-Id: <20221217172907.8364-10-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221217172907.8364-1-philmd@linaro.org> References: <20221217172907.8364-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=philmd@linaro.org; helo=mail-ej1-x62c.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=unavailable 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 Under system emulation, xtensa_cpu_initfn() calls memory_region_init_io(), itself declared in "exec/memory.h". Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- target/xtensa/cpu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/xtensa/cpu.c b/target/xtensa/cpu.c index 09923301c4..879710f8d1 100644 --- a/target/xtensa/cpu.c +++ b/target/xtensa/cpu.c @@ -35,6 +35,9 @@ #include "qemu/module.h" #include "migration/vmstate.h" #include "hw/qdev-clock.h" +#ifndef CONFIG_USER_ONLY +#include "exec/memory.h" +#endif static void xtensa_cpu_set_pc(CPUState *cs, vaddr value)