From patchwork Sat Dec 17 17:29:01 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: 634853 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1464766pvb; Sat, 17 Dec 2022 09:30:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf6opiA9QTiqiZtogGLNYb0Nzrhc9svveuRTxP8F0KTNeSSuRZNiySP1zNNDg+TcvhJZb4NR X-Received: by 2002:a05:622a:2283:b0:3a7:e783:7c4 with SMTP id ay3-20020a05622a228300b003a7e78307c4mr52411302qtb.29.1671298221968; Sat, 17 Dec 2022 09:30:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671298221; cv=none; d=google.com; s=arc-20160816; b=bn01KKsMCN44DjNbcJfP+9HDoT5xMHba+pqij9GqWZgTxruHYC7t9N3d6C1AgAGonW B4lc6etAgAANj8htjMxAmDZOvi9NXOLpqsnbdk5lKRnKyP3BGL00WXDEeTXEDtBVYcbk OoJq3lnkNoyPVDtjQ6+3UKvga9CtkCkNTzkbztYFrqG1kmpdc8z6yFSt2r8fqXO7MO3A jA2fgnTqR1Ef39ZU4L8sr3ZaB/IkEsDyicE9+BUNqg9qRafYeRQN64Vl42ETD2xdyIKM pdq+3I/JaEK2QEbzH2BH12ty0NbI7abgTm4jUSaNJy+KshrBhc+F5Cd8N/idGK4K+11z ZySQ== 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=6ZSUdi6MPqmLHvEe0ND7y8PBSQThNukontDiEvm1T8g=; b=Ke4xgPiVQT/BH05QMK+mjpzHvypoGOPbQOxgpmfkQzBc0CBBflj3XZ6FKkV/u1ucj6 ruYzGKLbaQLYmCYQZNQpBWg/wj7QOJwwR0LLNnb9Uht3pEG13QeCf/iyTtpeVt5eSsxl AFui4Yb0x0L8Q0+J2wg7gcN29387ueDa/PjItj6gR3dHpZrI0i5YaxI6T+wEZuT5n63D qGrlXK+JGD4yYYV+WZOk08JserVgPGHZeGOUj9igWmC6PjJtbp9B7ninXTQVL7E5wisN pGKrJBD0DXGt/qAYYMaXyzx/1+pD9HIK0dFPo4tNytV6LNU9epQ6AjU6MQhyTeYEdVkS oR4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ynZZBnIu; 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 i2-20020a05620a27c200b006fd55610b30si2315122qkp.456.2022.12.17.09.30.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Dec 2022 09:30:21 -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=ynZZBnIu; 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 1p6b0O-00027O-5M; Sat, 17 Dec 2022 12:29:48 -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 1p6b0I-00025o-LY for qemu-devel@nongnu.org; Sat, 17 Dec 2022 12:29:42 -0500 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6b0H-0002NC-6I for qemu-devel@nongnu.org; Sat, 17 Dec 2022 12:29:42 -0500 Received: by mail-ej1-x632.google.com with SMTP id vv4so13001935ejc.2 for ; Sat, 17 Dec 2022 09:29:40 -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=6ZSUdi6MPqmLHvEe0ND7y8PBSQThNukontDiEvm1T8g=; b=ynZZBnIu3uHw8ZjTU+ptvD8NAEOs31tgcoL65oO/ziaJtUsIIDjislHra910JvDW+s 3Or/QGT2iRJABqQ+5+Lrq0uvI7J5EmBBjec5B0ed4Dh4mmgt3G/SQkQcZhv+5ouILmAZ IDw4kv8HHlsCPdNam3qvGEzM1xTo6BZIf6vaBMAbESxTVvwNCUdLku4YUNpJoGoD1M5R ptjCRFtTW4fJImCc/odk5Ip3i/zWhGOlwMeNHGUDMDN+0HCYLfqxSom/O7ApsYSBQlqR 2sm3kZXXr/4Mlg7YVNIzT00WyYQfV7oU2ViR7ezs7WfMjFZ68mYw8Hr/vo7zEjLhWFLG M20g== 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=6ZSUdi6MPqmLHvEe0ND7y8PBSQThNukontDiEvm1T8g=; b=1gvNOBQ/WAJeAYuM3VNwvDAJ0qwtcSUjn7aTv+u7tQz/wAPaSkd4U13AGYxSdiDvzQ 078EkzjY6KQi/50vJsMHBhbxuR5Lre8K10CDi7g2MNtItATRoW9Qu8nNW6Qf7mroNZSJ Hqav9tLcFUXuu/tnemwsV6gmTKAj18wSc2XpZ7/BI6Jf56yl36gR+5kXPV4tKypwb8yO nlzuj7eryfeDd6xjqNqrpKDkKRcoYrSzWZQpNvfklojRetJYgPEaah51xE31AgFmeYYf e5CT9+Ixf1uW9/pJvxR9rmskYLBlkZn6TFE3pxJHVTTF+6SAqamfmd4KZehbpR0D89Bx yVWQ== X-Gm-Message-State: ANoB5pntptYC+1foPGOK5TO2gdnzhSnVFKs0pK7/rqMu3M0zguBTJPWm vTGOozZuqrmXj5Uhpa0YuGxpYRdZijeBxZFH9e4= X-Received: by 2002:a17:907:98eb:b0:7c4:fc02:46a3 with SMTP id ke11-20020a17090798eb00b007c4fc0246a3mr12442428ejc.30.1671298180297; Sat, 17 Dec 2022 09:29:40 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id da6-20020a056402176600b0046c7c3755a7sm2203849edb.17.2022.12.17.09.29.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 17 Dec 2022 09:29:39 -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 3/9] target/loongarch/cpu: Restrict "memory.h" header to sysemu Date: Sat, 17 Dec 2022 18:29:01 +0100 Message-Id: <20221217172907.8364-4-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::632; envelope-from=philmd@linaro.org; helo=mail-ej1-x632.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"). Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- 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