From patchwork Fri Dec 16 22:05:39 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: 634479 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1085298pvb; Fri, 16 Dec 2022 14:24:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXuIbdRV2V+2E8huw5zE0D/xIEd0aUgXDMTtkjweXy2FDG3UMYdDB6+IE6crGtXTo6EuyuPu X-Received: by 2002:a05:6214:5e09:b0:4f1:2bc5:de14 with SMTP id li9-20020a0562145e0900b004f12bc5de14mr58688qvb.9.1671229439835; Fri, 16 Dec 2022 14:23:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671229439; cv=none; d=google.com; s=arc-20160816; b=uLD2+WjeyMfeVOk8fLZB9lE7TSwuZwsqKY3AnoPxPt4qk3obeS1VdSXcs4Krk5U+X+ GIFbpnxoVZeUpAve5u5IMOZatzoI6tf6tMh0ClVdMvJaCCnXNvorulwIBQVDTGN4eKFP XadaDpzzGHNZiam9nU6Wr743e1h5V1DGH5fD+LTPuWY2yBsgrkW+HpCftl2mgsdtYz98 gSKwm4RHkfkWNGyGFBTmkBHGgQkA8yc5mjUeAYBn1p0hxb/akWsBL23OatqiPMSovScE XJdRvqC9oKmQ6AE/KyijfoYdarVwsDwOHinJUttMT3wAKSDoRxBo9D39x9XRRLK9mJIx 1F6A== 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=y22VnmAsDUUfD7bKCVGn+CZR8vmsucMEC+QeBAK42ow=; b=0ez5BtriyI0RvArfIX8j6Gm/NMpzaki1dnlF+p58zZPEUfXlhUqs06BWnpEZo2S+0v eTZMBqTP0RdVTVtOttnzJDDd8+aVBBe/1RV4mrbe3CbPyqJk/AMcY3ZOtgSOa2FCH5/V 56A3rKOBA7X6NPT32r7kVG7lxGBMulgHqSFVTCgm6G+4+xaRvThzfA2VNj3/BbSYEYh9 QvFrDzHLSpHh1LCF9EYKOtPCH4arj0Sq/t1wDkDSGij2vu818MK/5cwuYN9dN5m8Bbmf nMuDPAzReXCFO80F/JjcCJwc6ekn3NvrYMNjraLQ9Oh4ePiMJ6imU7hLUopxWnrVxXL1 2JtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IbI9cnoG; 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 jv2-20020a05621429e200b004c7005f0276si1560698qvb.483.2022.12.16.14.23.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2022 14:23:59 -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=IbI9cnoG; 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 1p6IrK-000192-VP; Fri, 16 Dec 2022 17:07:15 -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 1p6Ir1-0000ts-9I for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:58 -0500 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6Iqx-0005uU-MC for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:54 -0500 Received: by mail-ed1-x530.google.com with SMTP id e13so5498435edj.7 for ; Fri, 16 Dec 2022 14:06:51 -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=y22VnmAsDUUfD7bKCVGn+CZR8vmsucMEC+QeBAK42ow=; b=IbI9cnoGA4zhcEDcdm/rc3qCMgyN1W9anTL3gDLJyGvkCMg4bt8fZeGvGUpeKaNQrs xTpi2wR3hi7iNkbWM1DdQswMgc+GTvVvdX8gJ/+5Uyjc24J6D9i2NV70KcOPLl4FK2lB OuBzoCoukcAjljswx6et300JoKqse7OYYqy998feFeieiJprwMuVygsL/t6S09gWxNwd t6JswK2Ut172EUKHk7nusDw5f+/jYl+MqFT4oDmErDMOKdBamiXrA5gWsHdJH2wpngp+ IskVURdnSuVemsRtlqyi0+6sFHdjIwkf9wl2+CmeVVaWlyOSWulknnsX7KOSMtd2Jphb 2FpA== 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=y22VnmAsDUUfD7bKCVGn+CZR8vmsucMEC+QeBAK42ow=; b=2hXDJK8gjJe0dd2OfropZyaghPudSZhj982LZN/K1WmXMNs4vfWWiYKVMkyJ1IvV3b meN1Uzdy5aBSwTFhf8PHGrrVf4w8YvF7uoCNim6eil9065elWhNLQkJwb+oHsaCxQ7Na Ewj1EQhHQOn2fZps3MV6Ua7Y705CMFwEwzMq7TfnyDphcpoxO1S3U3SRvmnG5EqLJ65U dGmwq8rIfq/HtUvakHWM7Nnwe/oY2iMeML1SGGG0GdxPr0bD5qVly0dmPyc+i/cSLrBv csswmbmAeDpnNMIVn+/oNpvTaNROxKU0DFvqPTD6mlTs2jENGNq/HlmspoX9iDvZaNJv LNKg== X-Gm-Message-State: AFqh2kqKQBGT4tSTQwB/Vg9K0wgGMHbZjAjbL690CEtwfZz/IyJaBbYG CG8GUwElNqNH6dFfznLKl2tO0r3aSYP5s7DKD0U= X-Received: by 2002:a05:6402:2b8c:b0:466:12a0:11f3 with SMTP id fj12-20020a0564022b8c00b0046612a011f3mr1062813edb.22.1671228410111; Fri, 16 Dec 2022 14:06:50 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id s17-20020a170906355100b007aef930360asm1281754eja.59.2022.12.16.14.06.48 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 16 Dec 2022 14:06:49 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , David Gibson , Xiaojuan Yang , Mark Cave-Ayland , Bin Meng , Richard Henderson , Artyom Tarasenko , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Song Gao , Alistair Francis , qemu-ppc@nongnu.org, Laurent Vivier , Palmer Dabbelt , Taylor Simpson , Greg Kurz , qemu-riscv@nongnu.org, Max Filippov , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 10/10] target/xtensa/cpu: Include missing "memory.h" header Date: Fri, 16 Dec 2022 23:05:39 +0100 Message-Id: <20221216220539.7065-11-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221216220539.7065-1-philmd@linaro.org> References: <20221216220539.7065-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=philmd@linaro.org; helo=mail-ed1-x530.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". Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- 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)