From patchwork Mon Feb 27 14:00:21 2023 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: 656981 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2367080wrb; Mon, 27 Feb 2023 06:03:38 -0800 (PST) X-Google-Smtp-Source: AK7set+3TKYYsCjrcGIVUhuVP9ck+E4Z6VEABW00/l1YuAKGxiVMsDpTvamBoXbbkYdpifTftyk3 X-Received: by 2002:a05:622a:54f:b0:3bb:8a14:badd with SMTP id m15-20020a05622a054f00b003bb8a14baddmr15138039qtx.29.1677506618105; Mon, 27 Feb 2023 06:03:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677506618; cv=none; d=google.com; s=arc-20160816; b=W0HZJx6WyDB5GuUWF7LVeYNyAm4ch/biewOdbo5ZaScFlhWCbt1vfvlUDrAlYebXP2 nuQvNBx7WKw5Z2QftPUzloLC/ucMb7ri1A/TdQ7WroSzeovUjs4kVBsIZap/Sz4ad5tY HV8tH1jlg9XFa8ZctJU0FCEqCTqbJ7tTpXZyUMqfV/pndWR4PM+zcS4dKEEn85PdLzQW kgoq/maYjrwUhubZNLdvRudRAX8xzLb52JVHaKn1eVuXzo/oKiayx9pGc0FSMgeZKnMR vUNdGVr4gZPKGlyO/CRF7E1yx3jo7QDbLH6zdQDgasIt6b9f5VrLpJug6Jrh52w6SrvE rmhQ== 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:to:from :dkim-signature; bh=dyOSqHs1vt2kt+dP0iK9GebMvSPiNAmBiWh+egaSUqo=; b=cOnZlvzdnQjJpbXJgpKLTddKfiLSSZy8zNmUEWahuJGXLXVg7o0PUDg4os8wC4BtIw lMO6Q/yzin5TYGHYO0uXWTycV38vYi0RIp9dBbk4dFchFUoNBEvGdhLCzsT7C4fTx8jk NlnGq7ORwOUMeu1GAux/8diYxqQKeQwA0ei85iO1tS8gkz/VILM7dGZ6FRo4AVOC12Ti Q1YbS9xKGdkQo/ePkXWkOfyYrbMElDSyTxV7RsEp//H8H5uY5lCX9Qf/i/6duQJX/Kj7 nLtWMmIS2Ug6Slu9WLH2FrxpUFXKTubH9QWeaS+uzj4SX54yatKstIx0KaGdSdNSHBMw dnJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xatNRMwv; 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 w16-20020a05622a135000b003b85d8a96d6si6707136qtk.708.2023.02.27.06.03.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 06:03:38 -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=xatNRMwv; 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 1pWe5b-0005ft-Ip; Mon, 27 Feb 2023 09:02:52 -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 1pWe5U-0005YE-0Z for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:02:47 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWe5Q-0007ls-AY for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:02:43 -0500 Received: by mail-wr1-x42c.google.com with SMTP id q16so6355546wrw.2 for ; Mon, 27 Feb 2023 06:02:39 -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:to:from:from:to:cc:subject:date:message-id :reply-to; bh=dyOSqHs1vt2kt+dP0iK9GebMvSPiNAmBiWh+egaSUqo=; b=xatNRMwvWjy/uGgrBVDh5KVFZjhCFNn+ojsaEin6g8dbamJ7I1qhinKPwE2GXrZGJA Ucadwv6mhbu95gj4xZgCPQDqfNM/u9vjzKAAv1hYY/SXuzQ7uAXWj0cgXJvGiH2UQKpQ LYPTltYnMCAXaINmezsyEasjy7BcKLW3MbKE9xMuESXZnjwXLcL1RF3cmYIjh0+Lo+kj KRdgDxYrk7zdxeNYpkJZ/Rq96z6KJW53DDU2YZI7ilTdB5+enFWMlTYZlw2EACpbQfm4 iSmhmxaEeXGa/YEfZjFRAilkgri7nsXHe2R3wcRzS8xsX/Djn6NZEhPz6rUfMb64xd2I 7Oqw== 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:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dyOSqHs1vt2kt+dP0iK9GebMvSPiNAmBiWh+egaSUqo=; b=lvI7uw+B91xhpm8V7I8Idai6e30u6wIWYtD8pWSMxUoC8a8OKYntqbu2EaWHeLUKbo MNeWdU8VoGYnxFeR2pWCKnAoSOKpLcFQJDo4Kbct0zrw0xJnHmZo/sT1ovRO7RnvlW6X F4XEJXkgR5E72+UFu8L99v8JTekFreY0SOT87dk0dQ+Sow+V50Jtc2hTxj0bJbFbsv5Q SQ7zohC5LzUYm12kpHcu40r+Xg6yYfQfkOmJDKPQzQLYuJ6y1URp9PQwksrw1xs9mCQE 3FjtUGVKk2jv9a/JZjdBQQZT2qs4qAQ9uxS6on9HCGt3WwHH+rsJA1teMKVIoir7MDnD QeoA== X-Gm-Message-State: AO0yUKVOW3dK/rI0grSznvgNT0O0nlVVA8QTimJaB1+EERuu/pzA8jVK ujNbGKO+8oSnEemWTlhShr+jS3iV3Druq+uR X-Received: by 2002:a5d:4905:0:b0:2c6:e7f6:49af with SMTP id x5-20020a5d4905000000b002c6e7f649afmr17919688wrq.27.1677506558758; Mon, 27 Feb 2023 06:02:38 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id k11-20020a5d524b000000b002c573a6216fsm7030812wrc.37.2023.02.27.06.02.37 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 06:02:38 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 014/126] target/loongarch/cpu: Restrict "memory.h" header to sysemu Date: Mon, 27 Feb 2023 15:00:21 +0100 Message-Id: <20230227140213.35084-5-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230227140213.35084-1-philmd@linaro.org> References: <20230227140213.35084-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=philmd@linaro.org; helo=mail-wr1-x42c.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 Missed in 0093b9a5ee ("target/loongarch: Adjust functions and structure to support user-mode") while cleaning commit f84a2aacf5 ("target/loongarch: Add LoongArch IOCSR instruction"). Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20221217172907.8364-4-philmd@linaro.org> --- target/loongarch/cpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/loongarch/cpu.h b/target/loongarch/cpu.h index 3882e970b4..d60693fafe 100644 --- a/target/loongarch/cpu.h +++ b/target/loongarch/cpu.h @@ -12,7 +12,9 @@ #include "fpu/softfloat-types.h" #include "hw/registerfields.h" #include "qemu/timer.h" +#ifndef CONFIG_USER_ONLY #include "exec/memory.h" +#endif #include "cpu-csr.h" #define IOCSRF_TEMP 0