From patchwork Fri Dec 16 22:05:33 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: 634482 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1085728pvb; Fri, 16 Dec 2022 14:25:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXsH3uFegqrh88TObRkiB/7o325pdLE4QgfyNre8yojEXmO8MZFhrhUcH8iZASypoYP1+Dng X-Received: by 2002:ac8:7ee6:0:b0:3a7:fc39:6cd with SMTP id r6-20020ac87ee6000000b003a7fc3906cdmr1872363qtc.10.1671229524739; Fri, 16 Dec 2022 14:25:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671229524; cv=none; d=google.com; s=arc-20160816; b=AKyOKab02LISVSIhu3DNLB5RrDkV7EwzhLL83JDcBl1X/FOOGdRmLpr1HcEc0m3Sot csk4K+oG8wK2yNQZYxapJaBnbDd7LllnD9lD0plTB7qIBQYT7Ll26v/c12IlKbQrc6Wf beThm7EeOFjR7jcfq1IoOF7QD0r1B23V/0H33nXbrsRXaS/ARQTp/E3+Cbf+xoxa5Flf CAVLObSOOQ7OxhCBINAg2AVqYV1dWGcFLCX64omu5FiLuqyky0zpwXwMp9SA6yC5J1MC FscZoz4CKm5UGBOX8hIWh7KesGVxspwZTi+54i3M7BcUnZKSnfMDT+b97HaP+0F8cDir bBdg== 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=Dy6adUSc1nsjjorplxmdwlzsWilNUT+uX0VNLymafXA=; b=eSO2k3lp6FeEV1Ah0NkNBjixZr6SI6xFBPhUd/UkrxW2k+/IfVpyIXEhLF6oxJ5LgO +kuS67S385izs3oPj9ZQTRhdm4+BEBn1nv80BwT6jvpBgE8JeFjrhmNQnFcRGY8RtuS3 GeSbLffp1nlbXjWCCs07DH0vsDuP5GMKq+B2ydSPRyTEu5AwDuRenhuFBYbfvpty7fQb ZuCc7gTGhyskt0xXkH6UZfaJmKHC8rO18TKlbQ2kqko/CSonyLDBM/02F6dKfEhLiLPR +ajmaSz3XUT4kThzr807OFONPswamLGj9DosAker/IiU9zgN+R1atIGYEFbIybNyH5RL vMUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eM6dbvzb; 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 23-20020ac85657000000b003a7eaa070f6si1521471qtt.66.2022.12.16.14.25.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2022 14:25:24 -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=eM6dbvzb; 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 1p6IqO-0000JU-91; Fri, 16 Dec 2022 17:06:16 -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 1p6IqL-0000ED-Qw for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:13 -0500 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6IqJ-0005jp-AX for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:13 -0500 Received: by mail-ed1-x532.google.com with SMTP id b69so5496549edf.6 for ; Fri, 16 Dec 2022 14:06:10 -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=Dy6adUSc1nsjjorplxmdwlzsWilNUT+uX0VNLymafXA=; b=eM6dbvzbw9G+VkSBiUjAPDEjFVVT4aAyn7KM95Kr6qhis+o5F0RhrqhzlX2PNUXJ1T RGJFH1ybuZUC3l2PBEyxjpzYwbD+1INMwDIfjVk0IUsnekUf3YogA3zFVQUKI2TLhrbp mx1nEo/ZuEa931Xp43uy1wu4oqxSt7AI9VcHZji28EtqwzjzXaZlTSOnC+tO4hpdNIFS JWyUDJ+QzGFzCa4J1U/CYEBk8DL0hBoic46kdz143Rhca1gGmoFYT1W3DR7hybXpf8qY N0zNvbmmidy8YMipvkZM6V6X2YuDEljXaeUDng2xBZBzLf1pfNMXTNIgnDFsFVG1VbFN 4h7w== 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=Dy6adUSc1nsjjorplxmdwlzsWilNUT+uX0VNLymafXA=; b=No/T/+LV03TXbrtrfS/+DQ6DqzOniIUQ1IzYfnko+ocSam3VxkKxKqMiU1WWd88bJT fbmuKFeUstt7f4IE2Pm/mqVPzEnnurm+atBtPtFWS2lYbHc2caNzFX6xkcqKZrgbrMby aaXkOj6dkUqL+nPMchi1DyEFpOA9SZJG0rTxcu2TrYKOFbzGLBgoa2OFrylIbjI/SXSk rBxTg0hkVhcKDE1eGSiSe6d9XGqf8hhpcEo8T/UUd9jDj5as3QKAJ1teYRlYdFhKr7hW efPfQDHSOzGfl28y+eDbydGWCQj5S32VRoWnge8NG352dYknDvTQxoJAB6532W5yiStF 4k7Q== X-Gm-Message-State: ANoB5pl3fn0ka/ApKT/k4xsXf++NpqX7VFphyXGFuhErGqFgW6vhqHNK yajfkHHMkQxxaWULyxATkTz+XQuyhbWH6DZGKEU= X-Received: by 2002:a05:6402:14a:b0:467:8e69:ff10 with SMTP id s10-20020a056402014a00b004678e69ff10mr29352682edu.26.1671228369763; Fri, 16 Dec 2022 14:06:09 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id u10-20020aa7db8a000000b0046bc2f432dasm1306181edt.22.2022.12.16.14.06.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 16 Dec 2022 14:06:09 -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 04/10] target/loongarch/cpu: Restrict "memory.h" header to sysemu Date: Fri, 16 Dec 2022 23:05:33 +0100 Message-Id: <20221216220539.7065-5-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::532; envelope-from=philmd@linaro.org; helo=mail-ed1-x532.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 Missed in 0093b9a5ee ("target/loongarch: Adjust functions and structure to support user-mode") while cleaning commit f84a2aacf5 ("target/loongarch: Add LoongArch IOCSR instruction"). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/loongarch/cpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/loongarch/cpu.h b/target/loongarch/cpu.h index c8612f5466..2f17ac6b47 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