From patchwork Fri Dec 16 22:05:30 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: 634495 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1087954pvb; Fri, 16 Dec 2022 14:31:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXvj4qC4bACqv+BMfUbQd6uXIDjYBjvFv3SKt6JIERuRN/0EcsPCeMGslaDOfkEPFU7TYzlw X-Received: by 2002:a05:622a:1b29:b0:3a7:f9a3:b86b with SMTP id bb41-20020a05622a1b2900b003a7f9a3b86bmr1881589qtb.13.1671229897211; Fri, 16 Dec 2022 14:31:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671229897; cv=none; d=google.com; s=arc-20160816; b=qOyfPCLHH7Hw0VcErqvNHRkFQyDpl7TJLHVZfWN0qn3ZcHeTyPZXCZNDRLV0sU1UBo gG+P6usfzUbFnA1TYz+4Pm4HgKIc1m4gWxXZEZ3ZYu2C/9BHrbtPXa33c0rORdK4Ome5 SA4MdRZN2qRLFZxqEBx2kZx9/oFVyl7F5Slec5nScUrez2t7r2UwGvJ1RPmtAvPxv4Ux AVjILchW+MoBdQKf7VePclHfU0RntwwlsCEB+RrcsKnrynyQXSeaIpux/pzMXC7J4wTm YIv38nP6gnCLEHlC8RFc4v6e7TdrEHHVBk4b9pamApUEaFCrPDfS3ROs1uH5WzAfBTax 1LXQ== 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=ubeWMUt19KgbmFwzvU0tT5JUAbGa8affkQwKmoJlyrU=; b=BSS9LZnzLILjxBpA2m7+GeBjE0CcC9lhoVviIJ9v+WwvF/vreDDg2IGEpzeacrZ8tx cHGlvbONCK8jS7bnUCiyxb2VeBmMs8EPPk9mWELjy9tJEO0XBuAb/D76/1XzcQkP0lHM h3YntIUX6dxuqnbjhONAECO+9gZq2aGA4lR4Z7gPESbcZ/Qz5dZ3ejiTVWcehiKAlXfP tbXYuJ9+zOnzoPKzHCrIqKUsSdMLvPCeDFHBFgFHMNI4fO7Cdx2+tobmZUwhVWGrjhfX z/ZgUiNTy1+ib0/cBDjP3MnEyQLG9tpjdEjhfLxYoLCDG+Iwek5av0Elh3BPYa8nuZ4u cb4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JV4Rwk7b; 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 cg13-20020a05622a408d00b003a823c17148si1665126qtb.509.2022.12.16.14.31.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2022 14:31:37 -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=JV4Rwk7b; 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 1p6Iq7-0008JX-6c; Fri, 16 Dec 2022 17:05:59 -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 1p6Iq0-0008GP-Vf for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:05:53 -0500 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6Ipy-0005fm-J9 for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:05:52 -0500 Received: by mail-ej1-x634.google.com with SMTP id ud5so9299788ejc.4 for ; Fri, 16 Dec 2022 14:05:50 -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=ubeWMUt19KgbmFwzvU0tT5JUAbGa8affkQwKmoJlyrU=; b=JV4Rwk7bz+jAETSgYcE+C5FYSNuTXPnkF2zsiVw+nzz1VshU2dhmJaQAUchUEl67oK tsoVrrsy1vlUQ7ffYvni6h6C28rzTLMThEC+4jXk2ymVAkRye/dZ/VCfIuoPjCFCqHaw V1AT8z6nfrApeYvGLskUfkL4ob27bHeOYOp0qgOND+ZO6Z5NeVDtWqIOinn3u9UVuDOK pywSgwm58MrBgcDT2oZm7Nme8kyMHdXpiNKCVWhcDmtTbMqq6+dgW7WmK08hcv3rlj0Z R4Rw2IErUMhKFPHDHJShE19KGfxXDayTVrsCEVPBitplpTtIpPpRINgwbn79uaIh500G UG5Q== 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=ubeWMUt19KgbmFwzvU0tT5JUAbGa8affkQwKmoJlyrU=; b=hfi4Bgk2koZWxNysVNxHOgMy8pO5heDskrFWRTI1fYJqdTV1awleQpihXIhsRiIged iYOZ9qGxbAmBsCPAXgHnnXahWGE0jYwGzaZ0pFulW42+QlMmizWZioqRirEeYeAgKFjH mR8JtMmZmw+sgcAdu1fWy0qErsigIKtOUcija4wIn//68/S66j7smnw5BbLh4UIR81JY kqSM6X8DBvArKWFvVxz2gIuCEXeBrzdfoMEJKyqyZzDb9PisnINZxWaA3C0aKAr0BfFB 8m263A0uAU50gkP66bDPSKt22g13S49EeP3cfTi6ciPDMY8PoL9fIhokqWVGTXqJn2vs xeAw== X-Gm-Message-State: ANoB5pl9Ts7VaJncdvRFzsrz0erIijrq5/GCrTenVQUosWFl8aJqd/07 5u4dP+U0OrHk4VosIqHO1eqKU6G3pLf/TJWhack= X-Received: by 2002:a17:906:ecb7:b0:7c1:f6c:dd4e with SMTP id qh23-20020a170906ecb700b007c10f6cdd4emr32553198ejb.40.1671228349037; Fri, 16 Dec 2022 14:05:49 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id cn12-20020a0564020cac00b00461aca1c7b6sm1338542edb.6.2022.12.16.14.05.46 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 16 Dec 2022 14:05:48 -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 01/10] target/hppa/helper: Include missing "cpu.h" header Date: Fri, 16 Dec 2022 23:05:30 +0100 Message-Id: <20221216220539.7065-2-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::634; envelope-from=philmd@linaro.org; helo=mail-ej1-x634.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 'dh_ctype_tr' is defined as 'target_ureg', itself declared in "cpu.h". Signed-off-by: Philippe Mathieu-Daudé --- target/hppa/helper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/hppa/helper.h b/target/hppa/helper.h index c7e35ce8c7..621bc9738e 100644 --- a/target/hppa/helper.h +++ b/target/hppa/helper.h @@ -1,3 +1,5 @@ +#include "cpu.h" + #if TARGET_REGISTER_BITS == 64 # define dh_alias_tr i64 # define dh_typecode_tr dh_typecode_i64 From patchwork Fri Dec 16 22:05:31 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: 634506 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1089459pvb; Fri, 16 Dec 2022 14:35:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf6FiPJmhXC39F45YzFvT93TJ9CvxcY3pilDXbE9h3VSSZEbHM0RuQePtRQdICmCqVIrzGOe X-Received: by 2002:a05:622a:4d04:b0:3a8:18fb:d2b4 with SMTP id fd4-20020a05622a4d0400b003a818fbd2b4mr28975459qtb.22.1671230123643; Fri, 16 Dec 2022 14:35:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671230123; cv=none; d=google.com; s=arc-20160816; b=pi18xN+lztR7uxOBaNW4DTelFXnfdKXrOgBpEGuZnNTV3u6XiiU1yUIBN2jpThC4TD Za6IEKtBJnIrCCDWHPqP46g+Bao2aR5wtL+9/3pqGlI37vHM4ka10DclfZnyeVbUtbPK I2TSqSLSSVgNHMFQO8thZs6W0dpiF9Fx+nCuav0vEgZuvLDsPOGdGDxO2gpH5FwmMjJw JKzDOQ6jnwhirXRsHcOXYrVxeqxlE5TPsvyb8Trv5kmTiYkbZDo2mrNf/ylaOF1/nmxL XECCqUeJV+puYmWdz4kQT1WAnKZLny33CUOaBWnTqvOdzMOYIRMCuhjzEDsvw+/GJLsv UO+Q== 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=exsCe7wqZHx39cKtIHty5MCcAiVROc/nRl0VHcIQsKU=; b=hm10XPiOKJVTbJ04ujBIITMuaS3KskPqVXo56DCpsWfi/nLllYOnBQq13H+aFf8/jx FzNDcgqSq05A1mEFbl17qssx06qPNvufM6Quy6S42RgNT/JuA8oOCi2K1gmecAQ3L2XJ epRhvhYm7XPCzYgo3MTIMHWOHluVmZYja8tpc4lGyRDgnxTkf4bx2FBqCRNmPZ06hnex jUi2rZTSZaaBtHDGFw5FxRRNMJDKrGF8Wgd0UJCoJDNFy0l8wlNt15+G9rDUaoEIldp9 xq37CfTzWdLZbY81ufHIkPb6xSsciwX5lH83FHXP3uFKBtL5TLe2CZ91+32R3CQLXSR9 XdQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=byTpMti4; 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 i15-20020a05620a150f00b006feefd57a76si1416519qkk.80.2022.12.16.14.35.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2022 14:35:23 -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=byTpMti4; 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 1p6IqA-0008LH-73; Fri, 16 Dec 2022 17:06:02 -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 1p6Iq6-0008I1-0y for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:05:58 -0500 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6Iq4-0005fm-CJ for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:05:57 -0500 Received: by mail-ej1-x634.google.com with SMTP id ud5so9300274ejc.4 for ; Fri, 16 Dec 2022 14:05:55 -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=exsCe7wqZHx39cKtIHty5MCcAiVROc/nRl0VHcIQsKU=; b=byTpMti4F7j1AT70zf5hdcZBnjoRJI/GNo0x+g5nfmK44hjKdofc0zgxky8GBZTF9j G8Onm2k31BgznW/DBrlM6XiKl8ZJpADULRyzpWeqe0eWglWuqqShWLzDIV988NhEQwHj xjHqk87C2nTVuoMifVukHrhsA0huT7t416wYbvl1aH5r/68pMfDTQU5sEev2mcaSKxNV Efzuvap0wIWSY/2UuOc0ppnrub4jZ+pShTVMT0n0YazQHcUuHvS2ji2sUSdx0QD+GSEa gEW8fgl2EByKexX19+7vNWYXAMeYViqEJn4Y8JcIiZ3HIGjYiN8Q/yQAc4Cq0RdvCPc9 D3OA== 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=exsCe7wqZHx39cKtIHty5MCcAiVROc/nRl0VHcIQsKU=; b=vrWf0JjR9+15WE6jam3x4s9boDOQ0Y3xl4HyVlYXcsUCvRxowwkt5N+XnRLyW22nCz HsjzMFEXnYXTo/1ZMrX76rHh4WGvVQenfH8is5FiNF8z+OKLJlqfw+aGpOmzlwcBj1nA yxdzPI2fHTTlYn0dwW79QjtVPM0TM9bcujAO9JDlJ42Yc4ubIJ1QX7fluPiIkkGpFl72 icq4GdNee2tj4vIO1clQ1N9cK4AzwOdUg09CgFP2WLx9PriOBVr0VdxSP3wI4rsbR+68 0Q8Vrjtj+UsWpOhnkNe3jPWNh8K3cdNlk6+45/1H96FTXOon6wp3zK3Q2JdcwFqYKm88 n9gw== X-Gm-Message-State: ANoB5pkU80Du8DA04HJOndI7pzNjkk2sr6ARqKlEfY15lhXmeeWXgOp3 aBIFnHaE0jSglYTc2WaB6sif7JSRox7zYcOz/uU= X-Received: by 2002:a17:906:ee2:b0:78d:f454:ba04 with SMTP id x2-20020a1709060ee200b0078df454ba04mr29013194eji.3.1671228355449; Fri, 16 Dec 2022 14:05:55 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id pw18-20020a17090720b200b007bd1ef2cccasm1260491ejb.48.2022.12.16.14.05.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 16 Dec 2022 14:05:55 -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 02/10] target/hexagon: Declare hexagon_regnames[] in "cpu.h" Date: Fri, 16 Dec 2022 23:05:31 +0100 Message-Id: <20221216220539.7065-3-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::634; envelope-from=philmd@linaro.org; helo=mail-ej1-x634.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 The hexagon_regnames array has TOTAL_PER_THREAD_REGS elements. TOTAL_PER_THREAD_REGS is defined in "cpu.h". Instead of pulling "cpu.h" in "internal.h", move the hexagon_regnames[] declaration to "cpu.h". Signed-off-by: Philippe Mathieu-Daudé --- target/hexagon/cpu.h | 2 ++ target/hexagon/internal.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/hexagon/cpu.h b/target/hexagon/cpu.h index 2a65a57bab..9e8cd5a257 100644 --- a/target/hexagon/cpu.h +++ b/target/hexagon/cpu.h @@ -178,6 +178,8 @@ typedef HexagonCPU ArchCPU; void hexagon_translate_init(void); +extern const char * const hexagon_regnames[TOTAL_PER_THREAD_REGS]; + #include "exec/cpu-all.h" #endif /* HEXAGON_CPU_H */ diff --git a/target/hexagon/internal.h b/target/hexagon/internal.h index b1bfadc3f5..1a6386e0ac 100644 --- a/target/hexagon/internal.h +++ b/target/hexagon/internal.h @@ -38,6 +38,4 @@ void hexagon_debug_vreg(CPUHexagonState *env, int regnum); void hexagon_debug_qreg(CPUHexagonState *env, int regnum); void hexagon_debug(CPUHexagonState *env); -extern const char * const hexagon_regnames[TOTAL_PER_THREAD_REGS]; - #endif From patchwork Fri Dec 16 22:05:32 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: 634504 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1089199pvb; Fri, 16 Dec 2022 14:34:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf7olZC356NwLNgIN2X9UI/R48qOl+fpDkIfQUYSG/vVjM5Fv9WdhvNu4mJSQFnq3enIFDNc X-Received: by 2002:ad4:5004:0:b0:4c7:990:6006 with SMTP id s4-20020ad45004000000b004c709906006mr43501050qvo.9.1671230081957; Fri, 16 Dec 2022 14:34:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671230081; cv=none; d=google.com; s=arc-20160816; b=hX/sm46vRPxhZb+yx9CN3Pc7ueLOxziIE0A/yccpaYzQTxqiFXVhJ/fA9nCMuXnXXR kdYrbOLKe18X5l3hj10+7O8tU2eCvkD9UAiQtzxE7QHN5czTRxw7ObtZZ5CIa0og8HNN rWTNLUYqkT2aWgKSIrIfjvV7jDpke84/0kCWQUL+LXFWz7mV+HkOJ6YIvPa5jKh9om9t E8+ALFUXuf6hofNh2qSwn6ew23gBf7qJ1Zq7Qc7re/gI3330TnC+yDHhRzW1U0T9YOC/ +6UIpHtCQeqYDLf4J9rkmV4OUpaEIulfq0yYOK0TkDEubqxaQlsFtvvdcqV+ZPdqnQt4 rIww== 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=/7zfPeZq+WjIXkty2hBYoHNE0awyTmMmvDRWMBbE2YU=; b=MY2LWYiwes086mrzKV1MIAEAr7hwVQFMC2rjl/DNSOo2jTokNHFZoYc+Jhr0XAOtbD YPZlfCbe0u2hIwakKDXD70bHV1rVTVapFwUeRSIUobjWATLjMOquSOfUqHb7rR6RZ1Bm ImpoEb8FNK5e2Xc3Iy9+vAhjjEYTfsXui0cLXZOZJhx2ALu0lQUKbtH5o/qs2OxspMGB 09Wv05gC1wPbMPhnnwpGMQxuPJ2NPThjlU2TZoOYPIno5YwcipDeml/7VsNr9tKW2U+o /6CIPp7/4dq3LZmrxgT4qzQe9Whmu7MuMSNsMyV3TmpnXKVMo8qJD3bWZ4ws8cGOUdd0 3CNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cqv6+1TW; 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 gs4-20020a056214226400b004c6d27ff99csi1589730qvb.469.2022.12.16.14.34.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2022 14:34:41 -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=cqv6+1TW; 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 1p6IqF-0008Ti-7V; Fri, 16 Dec 2022 17:06:07 -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 1p6IqE-0008SO-8R for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:06 -0500 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6IqC-0005if-4q for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:05 -0500 Received: by mail-ej1-x634.google.com with SMTP id tz12so9244412ejc.9 for ; Fri, 16 Dec 2022 14:06:03 -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=/7zfPeZq+WjIXkty2hBYoHNE0awyTmMmvDRWMBbE2YU=; b=cqv6+1TWnHKyPW8oTuB0ooZolJMgxroYIppqtkgAcOPTuVHszNg0r8Ki7TPycRuk8o 1tcCSTOouiy1/UiOLxlpg0QjLZlL5tRrM6hIEN7cMbh9w6MgUTsyvQS0qM3GPFyZ/t2w 9WlUKyBB3i2WOvZLJGF8DbPGPorNtktf5wd6DQuXofxdce4b+czAHie2rp/1OVusg4gx JAViuyfIr0beUbpx+pHdGad70Wig66tXKR+iiUBSbIpjdCGFLHtRLz/ulxI9FwIrtp8M jkgVH92IEu+wtVCes+5N3gVFQcvSzpR53wqjyDz1nqth51Uk/lIaLFLzpsnEYvbMzOc4 t3pA== 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=/7zfPeZq+WjIXkty2hBYoHNE0awyTmMmvDRWMBbE2YU=; b=EDTeR2DiFHCi9Mv8z7vDQzm8bOTdj3iFJfylMH3Wq3VvoFpt5XtLxsST5eju6gNvFB Sw7rz5iuv5USpa9d5EDNyS3Dw6fS9AxhiEBI1ohm2IJgsBFCMjefuePEdyFXrCVZNYR8 fUoMFArELq1Z+ufP92/NAZBCCLEz+hIPf/bvsCLJkxtTEzlkXP15SCRFGeQumqmcNoHf NjOiFORSpOLNXOYY0Yu7fIgZGL6jiRvINqHj6fh/p+/gmn+xtkPiLl0FcCdolfwvAVdP qxBoNvEcvK32IyhOLcBhgJTuuGv9tmtV0WKGO2STTpy+CMYP0ZrK52qGmHL6VsurB1jE m0GQ== X-Gm-Message-State: ANoB5pmQC66Kf3NtInp6UU+QynxcblAXzTS9lJ2crjJhSHhDBJq1sLLD U8WtYvLfX2i7IMGCb34Ogps2n5f4DXgxkQtUO44= X-Received: by 2002:a17:906:e215:b0:7c1:844d:7447 with SMTP id gf21-20020a170906e21500b007c1844d7447mr17307071ejb.35.1671228362486; Fri, 16 Dec 2022 14:06:02 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id b18-20020a1709063cb200b007be3aa82543sm1290715ejh.35.2022.12.16.14.06.00 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 16 Dec 2022 14:06:02 -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 03/10] target/loongarch/cpu: Remove unused "sysbus.h" header Date: Fri, 16 Dec 2022 23:05:32 +0100 Message-Id: <20221216220539.7065-4-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::634; envelope-from=philmd@linaro.org; helo=mail-ej1-x634.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 Nothing requires SysBus declarations here. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Bernhard Beschow --- target/loongarch/cpu.h | 1 - 1 file changed, 1 deletion(-) diff --git a/target/loongarch/cpu.h b/target/loongarch/cpu.h index e15c633b0b..c8612f5466 100644 --- a/target/loongarch/cpu.h +++ b/target/loongarch/cpu.h @@ -13,7 +13,6 @@ #include "hw/registerfields.h" #include "qemu/timer.h" #include "exec/memory.h" -#include "hw/sysbus.h" #include "cpu-csr.h" #define IOCSRF_TEMP 0 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 From patchwork Fri Dec 16 22:05:34 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: 634491 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1087750pvb; Fri, 16 Dec 2022 14:31:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXtphPdg37KWElLnIt0sqX7Oimntf92UBewqMy56nQpl4TUw2oT7Gzqu1NwZg3ZzmEfXcrsq X-Received: by 2002:ac8:5350:0:b0:3a9:6908:6d00 with SMTP id d16-20020ac85350000000b003a969086d00mr10943074qto.26.1671229869503; Fri, 16 Dec 2022 14:31:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671229869; cv=none; d=google.com; s=arc-20160816; b=AVnpL6Gqft1BOMW54HtO9y47Kt9uE2NJskzHnwD0xcYQOqiXhSvh5IQaE+2lUoC811 33rv/jpPtWk409hwoVck+8U4Cnk6hXTpiCzlAxx6N69XuonxkuIL+hIW/30mTPHXZ3HI 5JgHNhrRQwYmwZNe+kqKvsJrlra4TJfNzUIdjZrQk33Fm6vo8rr6bcR8m2JwmvTj9V8Z UD0BUdlCDEo5eTJsTekeY1qMXiAg72/gfC61LpiPPK4VFKMt5UGTiYIf8WSkVUWJEdUw 4sWJPxm8iANXH9nssvgUCQGdidQnNE0wOS+ifjwTd9hLP7WGzkxAxNFwfn4j+K/CE5RA my1w== 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=PsKnVXEUFtle2sBljg3GOYibf5GE3DbmvaOh7ghHHi0=; b=LICtA094PBs+WSmXX+VJg1vhMwIOr4EcUpvBQhKb5fbgQxKJAz7zkvO9ksCe6WiiN9 bD8prMvUl+E4tFUZFXbvnUf1bjIbrAvyMa0q/x/CQeyzSGvk4CSuuLNxeIliB239Y2be l2VRXhFIFY4q1eu1NosSfdxnOzLr9qZy3zvvbrd1a80asVhRhYv7WcY98uWct6XE+qkG 83zq8j37HQ9OztJXND+HUFj8TYyo6Spmeuc9IcYmxWXc3vU0amykINFMshfhWNrXI6L/ mHhCA7Ard3IF3dplIEBCbVvlbMOdueEBtjp48YJqza65k/as4zB7AwjBsQjBNen0OMZs t4MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SaHJd9A4; 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 m20-20020a05620a291400b006ff838cda43si1684784qkp.365.2022.12.16.14.31.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2022 14:31:09 -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=SaHJd9A4; 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 1p6IqT-0000RQ-4R; Fri, 16 Dec 2022 17:06:21 -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 1p6IqQ-0000NX-RZ for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:18 -0500 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6IqP-0005eT-7Q for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:18 -0500 Received: by mail-ej1-x633.google.com with SMTP id qk9so9305446ejc.3 for ; Fri, 16 Dec 2022 14:06:16 -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=PsKnVXEUFtle2sBljg3GOYibf5GE3DbmvaOh7ghHHi0=; b=SaHJd9A4VDZlslJV3RgBgsdMQtyCPmvC/H7J1wtW9neQsb8tqHigvVMGtPJ7SzZj1u h/tRBNl3ORng14Ede7NZubaB0Lv11EqZK3Cr1SiVasnX/rkh68TjB23btbC+0EnBUa1M LsYfELPINBRP+Bk65l9cQNZx4q0dfUAEYYkYvYQBhowqK0grQ9L1zY4jP3rGKGRp7gDe pxujFnQsZ+alERakUZZFfVWKRX1CIt+wRSc3K39cqhbBgycf2q+7yXxQ2Z5bILKexc1r t1csA3PaTuJTQ8F5lAGZP+1smlp5FJ4qBZ9vvabgGi+NAi2UPe8eQl+yhHYbcltsZf1Q j5Sw== 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=PsKnVXEUFtle2sBljg3GOYibf5GE3DbmvaOh7ghHHi0=; b=acRHyc7VnV5hmU83BMO58wX8jHBRCtEMRLKzgIbBMz6cYPwZHhAT1i6WedMKr9sUM2 pDWJj7XCloRUrOT+Azp7cl68h2USqWJM8DMK0o+dVv32SE7sQ3GcyCMwMT5/2jOVEJK/ A0Co7Y2qwmz1smlXEQ54kCcgD/iGo0r6hcRjzAJ7oVxdRQE1BUdwxy1+nEFqcNkblo08 WdtAkkrvsH//2zuQFaBsdj/tVSKU8D8Zcl4TIdNWyfCFJG9B0mDITOe0xniMkMEoDYVZ iTh0hgu2Xa6fkcDMLF4EOVJHC2qARr9WyZx7Yr/0RygCcViFSHncQssHbKQlEM0YUf7F e5Cg== X-Gm-Message-State: ANoB5pkbKPBNNJNaWdHk7QAuGxkSr9xdDXERAhRNZe5otgWBawT6eK21 j0T2GR/V7ugw3ovAK8k4d5xfTacnDyCLzL+M17M= X-Received: by 2002:a17:906:3810:b0:7bc:bf29:c58 with SMTP id v16-20020a170906381000b007bcbf290c58mr28222249ejc.2.1671228376255; Fri, 16 Dec 2022 14:06:16 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id fr33-20020a170906892100b007c09da0d773sm1289223ejc.100.2022.12.16.14.06.14 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 16 Dec 2022 14:06:15 -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 05/10] target/m68k/helper: Include missing "cpu.h" header Date: Fri, 16 Dec 2022 23:05:34 +0100 Message-Id: <20221216220539.7065-6-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::633; envelope-from=philmd@linaro.org; helo=mail-ej1-x633.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 'dh_ctype_fp' is defined as 'FPReg *', itself declared in "cpu.h". Signed-off-by: Philippe Mathieu-Daudé --- target/m68k/helper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/m68k/helper.h b/target/m68k/helper.h index c9bed2b884..aaf0e1668e 100644 --- a/target/m68k/helper.h +++ b/target/m68k/helper.h @@ -1,3 +1,5 @@ +#include "cpu.h" + DEF_HELPER_1(bitrev, i32, i32) DEF_HELPER_1(ff1, i32, i32) DEF_HELPER_FLAGS_2(sats, TCG_CALL_NO_RWG_SE, i32, i32, i32) From patchwork Fri Dec 16 22:05:35 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: 634499 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1088283pvb; Fri, 16 Dec 2022 14:32:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXtVmJzKKahDwzhkh9ffYr+Zn0w7ypNA2ViWXlFzLw2Ery1gD8LUrgvmK542qRU06viaVUaz X-Received: by 2002:a05:622a:4290:b0:3a5:758d:8f5e with SMTP id cr16-20020a05622a429000b003a5758d8f5emr1503342qtb.19.1671229946673; Fri, 16 Dec 2022 14:32:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671229946; cv=none; d=google.com; s=arc-20160816; b=mqmt8a7okxekmLfBuxRb6VGB32g7D2zcIP5TdasyC+sREbv78BU0H6iUW0vXHCXNYt 4XzmcQ0dp49p0jbXet/glI3AqDJxn/Xjog+09qeXl4DQ2Ajy/3JYXnZkI2D113fFAbJM aiET4XZNmIlegbuLATHMFfnNmqjrSTH+VkGBpuZYetkV7YJ9uCFWQO0zXDAdhC7WBNtf 2SNGG6YExDXbY/d7q97CC9EEGA6+WpydpqQ3D4ySr2L7Tpr5wXC16Kn6NHGhoP5Z8HxI 3jj8RN5EyNzQHZObBGX14jlAZ+3SYkssTCyU/wK11/m4jTdj6lyvLFKRWHH1FACrn/jg XHKg== 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=qRl0NH1dSa5ezBWLNBBiop31vMlIv2LnSrGHXpwTSes=; b=Y2wibRs3CUuutNNiT3wt8JXGuckF2GEYM8M5ZeNvt+986IduYp5Ug4AyRotY4HJCS7 40MrXjMM6VxvYk9GSmSEK+uWajYrZ5dA5WIczE5X/oxc614Kw7PTVwETMHRvGVRddVRy BxegWvh+Ir9vue7N5nhrNlCbvOVlYKSYfuqkTi501R3KLL3M+f48gO5qXb3aGy7H+YB6 A0/RJyMm+6AIqc8G+/JyFAUaLA43wkyA8/Cax74BFGcFYENiogY3oViNknHgEnn6wFqx /0t/9TdY6x+JWSSslJ9UOuIP5JMKJalsKSZgeXdZtYcIf3MZ53aWqkdu/wN7Y+1mwFQH Dtng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BPWMBNrC; 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 bv14-20020a05622a0a0e00b003a57645c04esi1702958qtb.590.2022.12.16.14.32.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2022 14:32:26 -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=BPWMBNrC; 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-0000e0-7t; Fri, 16 Dec 2022 17:06:42 -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 1p6Iqa-0000X6-9F for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:28 -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 1p6IqX-0005kT-RX for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:27 -0500 Received: by mail-ej1-x632.google.com with SMTP id x22so9214817ejs.11 for ; Fri, 16 Dec 2022 14:06:24 -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=qRl0NH1dSa5ezBWLNBBiop31vMlIv2LnSrGHXpwTSes=; b=BPWMBNrCxEqKXqHbAwUyvnZOXnk6iVhxS5JrSeVM1xqvsGTyjbjBmW+fhvK8bW4WV2 ZVtIa/iQdove3R6oh25YI61MauXGG2PgXZmvnR/4DEP2l21hjSPR7KzRryJm1O0kH5ig qkGkMz3ptMAR8b1eSqT8k1ZXZvSJYm8fbYoIjXy2IUKvugFPjD0TBC+qLi7qzfUjRgWd /TwkA4t+RW1G3/ftVG4RnMl19sjdUOAV9MSbA4r2o1zaCYPwXnOrKQv1ppcG/0Tfxt9Z WivV81t/PPRgWMvnFHgJMbZe2kagx3oMNU9v5LtKlgFghhEhn4CcVERngoHUILld0zlk 9X6w== 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=qRl0NH1dSa5ezBWLNBBiop31vMlIv2LnSrGHXpwTSes=; b=wP1LB7+i3fT13dhj/JkeyaokFSoXBFfM6EsA9xdLmiTZRI9YACL4asm47YHkKtzTkt xnXDoTe1J8YrGXlcwk0OLtt4v1b59gPpR0OGRgMWEv9wbEesTrIc9veHCZ6gBSRA0iZ3 8Eih1jL84Ms6q4cvFy9eImN/hU/wPL/vRplbkPwwuGrvsHtcPCkqFw9KvdZo3wSdlqc4 QDqHnXIgTVXUezfMZGUDKQxovM8I5wS/GFF6T5EGRdoVEzhaOUjtcF0jgcWEcRThgnkG KOyKAK3etcVgCtOGw1whzulP/VjjhLJTGIo8OtnIgiIUhzZuFVUkNv2ESWQRq8dy/eVM KHqg== X-Gm-Message-State: AFqh2krOJo1emC0OyOjt1NSXfNGDP7JF4CwcWi6masNA6H0+kkIMbGBJ f2vrsW2dIhNUwFbcFyw9V+EKg+vlrfxVL1fvQEA= X-Received: by 2002:a17:906:8d86:b0:7cd:ffd:51f2 with SMTP id ry6-20020a1709068d8600b007cd0ffd51f2mr11198643ejc.57.1671228384400; Fri, 16 Dec 2022 14:06:24 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id lb2-20020a170907784200b0078db5bddd9csm1289247ejc.22.2022.12.16.14.06.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 16 Dec 2022 14:06:24 -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 06/10] target/ppc/helper: Include missing "cpu.h" header Date: Fri, 16 Dec 2022 23:05:35 +0100 Message-Id: <20221216220539.7065-7-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::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=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 'dh_ctype_*' are defined as 'ppc_avr_t/ppc_vsr_t/ppc_acc_t', themselves declared in "cpu.h". Signed-off-by: Philippe Mathieu-Daudé --- target/ppc/helper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/ppc/helper.h b/target/ppc/helper.h index 8dd22a35e4..a02db8d893 100644 --- a/target/ppc/helper.h +++ b/target/ppc/helper.h @@ -1,3 +1,5 @@ +#include "cpu.h" + DEF_HELPER_FLAGS_3(raise_exception_err, TCG_CALL_NO_WG, noreturn, env, i32, i32) DEF_HELPER_FLAGS_2(raise_exception, TCG_CALL_NO_WG, noreturn, env, i32) DEF_HELPER_FLAGS_4(tw, TCG_CALL_NO_WG, void, env, tl, tl, i32) From patchwork Fri Dec 16 22:05:36 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: 634503 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1088931pvb; Fri, 16 Dec 2022 14:33:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXvwIiXoGOR8EqcbtV0x5ikrZ6zOMazHw6n61N+7Tg7gJpLcLZex/eQ8O9vzh7RZTw3+lEZ4 X-Received: by 2002:a05:6214:5446:b0:4c7:1ebf:717c with SMTP id kz6-20020a056214544600b004c71ebf717cmr120195qvb.7.1671230039742; Fri, 16 Dec 2022 14:33:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671230039; cv=none; d=google.com; s=arc-20160816; b=pvEdM2/VjxUO0eP/OfSSz/PL99naT76Our8M52px4PzRCIY8f/TpPfGD2jTBc40DZ2 5mAHc1M9lXUCKgdGySrsEqXRjrtQ0KrxaglZtRPRY2jVIaIjna223jjUu7iQ6B62usOB RBMsCxxaeGw5YsVqemak9I0ysTqh6/lCauXRLT8wJXCmN0SR9XCb8TZXgb0o+i7a6cjr YjGs1/ruUrYz0S/vX33Wjfu2d6UqZ7VkWWzUdhrz2qjUc5Xf/JNSbowFg28CF1SwVAzB F4ygK9g7f3BX4d0zWIv/Bo4p02hhpWuBpfMXGtBbqGlQFU4TXq1IhNV5EeK8i6v/EBpe N5mQ== 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=FgRh+J8ugBdTp+hBAPKxvrVE6x2miNoYmydbOZW5heo=; b=f27ppLyQT1x1Gd41/JtGeiZwEIJUUnpZ28UhlYEdbPHQ+N3GOcD+r8xu4lZPIGfXlQ pq3T3zhzHXhTGTiT3ubDM7x7+PUVgnhYMknCuvWECvujWu8f9gn4POiwmdUlIZ2eH2uQ mIDnY5orxSKMcuP2wburcl/RRZWw5BLdpYp9iyfHCyeUb2HrXX6lHhIW5HPJJ0i62BT6 qtNaK8BgXjuD++lWo533KlrPA0fabb/skBaAkYHAxre6DoW0lO7xZsR0RQiEQmjEh1sB /DbhPmKCaf11Qy16cnj5Fwuxj5cOgdSOLU5EcXltxId730u2XaZArVUyUf0JBdFQxWyj K10w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HNUeMPgz; 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 p9-20020ad45f49000000b004c6b3730971si1565907qvg.465.2022.12.16.14.33.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2022 14:33: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=HNUeMPgz; 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 1p6Iqt-0000iK-Oz; Fri, 16 Dec 2022 17:06:47 -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 1p6Iqj-0000bo-EF for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:39 -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 1p6Iqe-0005me-GM for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:34 -0500 Received: by mail-ej1-x62c.google.com with SMTP id kw15so9219161ejc.10 for ; Fri, 16 Dec 2022 14:06:32 -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=FgRh+J8ugBdTp+hBAPKxvrVE6x2miNoYmydbOZW5heo=; b=HNUeMPgzvuf6AsZmElsdhHeaksTRLQtyPVlctzXt0s+RftDHFpCzUNFYprNzhhJbOY o7NZ8KpQbPujdhQqVFK2K/eHcYw9gDbOQo16JfxsQL1dJHZv8gGs3T+8cFP6fTWXxpZr tvMxjF1uC9UDQLtTA6zQ9u/yAJINT5VlGns1UzWYWi222Go/JAwbniNEcoMntAZoEde1 BwRxGn9bmKJCgxfw2T3mFM8pjloOyF26G6ZwOs6qsoN1Y5snYZQwtb6GYaxgpiWOmxoZ 6xidAvRxPjlU3mUtrs6lOEPiIEmW4Hofzoe20PxgFr/foQ43Ypj1zzoW2sHNGDoEPrIp SI/A== 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=FgRh+J8ugBdTp+hBAPKxvrVE6x2miNoYmydbOZW5heo=; b=FVLyVDjrQq0jMThYsSEZWtCOo4e2AISG+l65T0AVwnbGcuJcWS+kButOmVxxdeZPF8 1wg9Ccnm9cRk43wlKMbTKiKlidj7PG1lh0OHEhR+WwHOWjJVTW0Hqgb67EMPx2CTPujT Lww37pWEMo8QC0aEfl7DFekHCHyaxQW76GdDfTvHQe1uY8TVBKkmxv2e5d6p4hZLbAXR 6Bqu6LqDzFUs6MFlbpOg7H6XJktxzM14q9IKWayF04xSvtg39djcCzSLfF23ZolmdNcJ FAELerm71J9ldzwYo1h1oS5NsF1hM7PkfELULda9kHQozZyBLapUskKz3U4wOQaNNBdR 4NQA== X-Gm-Message-State: ANoB5pmYSIbRlEW4uCmtc7x3RiATHaTmi3nvyqagZDJ1b4tX5KJbEuOU Pe45kLu1uzkhFvIDUY4YU1+lADz7MgNS3pLZcRc= X-Received: by 2002:a17:906:a886:b0:7c1:8f53:83a0 with SMTP id ha6-20020a170906a88600b007c18f5383a0mr13347269ejb.13.1671228390734; Fri, 16 Dec 2022 14:06:30 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id k1-20020a17090632c100b007c10ad73927sm1293554ejk.28.2022.12.16.14.06.28 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 16 Dec 2022 14:06:30 -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 07/10] target/ppc/internal: Restrict MMU declarations to sysemu Date: Fri, 16 Dec 2022 23:05:36 +0100 Message-Id: <20221216220539.7065-8-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::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 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/ppc/internal.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/ppc/internal.h b/target/ppc/internal.h index 337a362205..901bae6d39 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -242,9 +242,12 @@ static inline int prot_for_access_type(MMUAccessType access_type) g_assert_not_reached(); } +#ifndef CONFIG_USER_ONLY + /* PowerPC MMU emulation */ typedef struct mmu_ctx_t mmu_ctx_t; + bool ppc_xlate(PowerPCCPU *cpu, vaddr eaddr, MMUAccessType access_type, hwaddr *raddrp, int *psizep, int *protp, int mmu_idx, bool guest_visible); @@ -266,6 +269,8 @@ struct mmu_ctx_t { int nx; /* Non-execute area */ }; +#endif /* !CONFIG_USER_ONLY */ + /* Common routines used by software and hardware TLBs emulation */ static inline int pte_is_valid(target_ulong pte0) { From patchwork Fri Dec 16 22:05:37 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: 634458 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1080481pvb; Fri, 16 Dec 2022 14:12:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf5TLqIUsuvsgqeOcxvu7Dh5DWW9Yi9ORF9S/pr+wMFT0/gV/W/6gifinLabwLPG+Ambfi1v X-Received: by 2002:a1f:5983:0:b0:3bc:b966:2ccc with SMTP id n125-20020a1f5983000000b003bcb9662cccmr20094326vkb.0.1671228726453; Fri, 16 Dec 2022 14:12:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671228726; cv=none; d=google.com; s=arc-20160816; b=faj9mjd9LvCpe1Hmfd505OOJaDGywhWa+x0j0njetVJkJPa0m7oVw3L8IQxAZ1ZY2v +wOa2Cb9I4zez+wvb5LlXLSCQLSLrbTk+5MsOsMvSf4GP1DvNolU32c54esJvL72HODN vLKeamzJRdvnT6+uGU1M7/gfAiNYnqNo6fhHTjYqaS/FP6qZvNt7x0X8JqxvYtl59fKd YBRWySK8T8IGsUhAulaxDbMcToGGbMQ1zBqt20Hk/ZlBxgaRCQ0o7EQ/2lIxXPchBG7Z PnTBe//7SHcq6jyTg5hjZgonnkxrdkDDPmWiAo6YRVACzoDNu0KNPZS9dcLwPyBH52PZ WyNQ== 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=DKk4+6qTXmgaYyPsv6k9eMYUz9uXm7tmF1K/e5qW2CU=; b=ZeVFYun90Qgfga8UNf8m3n49HXK72agHwmacYJXQhNhlp6hwTzn9Uv1hhyP1eK4/tE YuWvHBsxIcgegTad1aIvxT5aBKInTZy0am1RVxhtYAR0XQWzCaoyKKir+wG1SIkEXJ+D eDyaqguG+riNOPwtejpCn9gBCzc8XYf8EntMsvhUXuesDg52V7Annn52aDZdRIC1+HqT H6VxAR16eWZN6PMRpXVyGVu8souZh6dx3sv5MmwDenxWZy/dl1bFgCL2xstApOzWq1/5 DPnI6SakQRyDCbDXLMKp6h8Wr5L6ZuMZyPsLC3c3gPyFauMG1xT3nCC6TIRRJ8HZRB0a zljQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zBRbg6X9; 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 191-20020a370bc8000000b006feff6b2fcdsi1428867qkl.280.2022.12.16.14.12.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2022 14:12:06 -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=zBRbg6X9; 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 1p6Iqu-0000jw-NW; Fri, 16 Dec 2022 17:06: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 1p6Iqr-0000gR-1h for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:46 -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 1p6Iqm-0005nQ-7v for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:43 -0500 Received: by mail-ej1-x62c.google.com with SMTP id jo4so344792ejb.7 for ; Fri, 16 Dec 2022 14:06:38 -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=DKk4+6qTXmgaYyPsv6k9eMYUz9uXm7tmF1K/e5qW2CU=; b=zBRbg6X9TEhk6XXN3GVh6Kh9MzTp2KOt9mnVwQ/I0IT3ScIOWqUOYp2JzT38/KmNkT xT1sToARe44GrtXNEbVF/wemOvayGCG6ixeJLkS/2rb2Qj3Yjmyww76b4+AgT6DCNY/l AnrBfogvMEAfgN+XA2RHu5NsRPx1kH6ZAfxn17G9siihb8eNR29JpWdbgA8TGAvKRvgw RH4/YGqUCdmm2ei2IJrTeY7ctw3PMLjJIjWnTfToIkmPQHXlfTwFJh18um/UTLN8TqCd DuzqKJ3f0t2AL8F/0gkIpVm4CUPUfIDJ/gg5dPyAtnM9F/pQDD7j2MkmwfYuk97SY3D7 cpEA== 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=DKk4+6qTXmgaYyPsv6k9eMYUz9uXm7tmF1K/e5qW2CU=; b=t8WkfWxWs7u2l5LV8AynGN8PSxnffCEwOI71EMYSSZuIHRTv9evfBcL4zPv3j1eIyn XTX7kchR3tLsEQCNOAyMGCqYgQRMzozcxP73eiOd+U579ZJw6KnyymbneKQ8kjQHfX/A YGyV5BJ5F1ssPJU+70xFydAFOJ+2XNQQgofWWouW+I+4yS0C3pCr0bBV26qz+EvOwfLC roL+61Ji4c1MYiEJSNvjHiek6mHDfe83d0dPjJJ0a5YNGj8F+H4UN+KtHduPh/uA/i8o Zdxlxy46SipTvxGRSxsOrbMUVnpJBklocUsWe8HS6TdtHZuyLt1OHkuroFB77Tm02OsY R+vw== X-Gm-Message-State: ANoB5pmtzyUHg3PZDW2TpZPSrCCLbi2xRuhnG+oAVnNtvBiZXNJPKjkS e6cuWGpSRHYDSOXO6JPxDCztoevXJBwj0z+dk3E= X-Received: by 2002:a17:906:a157:b0:7ae:83f4:3bf5 with SMTP id bu23-20020a170906a15700b007ae83f43bf5mr28725376ejb.68.1671228397655; Fri, 16 Dec 2022 14:06:37 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id i9-20020a170906090900b007b9269a0423sm1302927ejd.172.2022.12.16.14.06.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 16 Dec 2022 14:06:37 -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 08/10] target/riscv/cpu: Restrict sysemu-specific fields from CPUArchState Date: Fri, 16 Dec 2022 23:05:37 +0100 Message-Id: <20221216220539.7065-9-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::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 The 'hwaddr' type is only available / meaningful on system emulation. Signed-off-by: Philippe Mathieu-Daudé --- target/riscv/cpu.h | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index fc1f72e5c3..bd4e16d946 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -368,16 +368,6 @@ struct CPUArchState { uint64_t menvcfg; target_ulong senvcfg; uint64_t henvcfg; -#endif - target_ulong cur_pmmask; - target_ulong cur_pmbase; - - float_status fp_status; - - /* Fields from here on are preserved across CPU reset. */ - QEMUTimer *stimer; /* Internal timer for S-mode interrupt */ - QEMUTimer *vstimer; /* Internal timer for VS-mode interrupt */ - bool vstime_irq; hwaddr kernel_addr; hwaddr fdt_addr; @@ -388,6 +378,16 @@ struct CPUArchState { uint64_t kvm_timer_compare; uint64_t kvm_timer_state; uint64_t kvm_timer_frequency; +#endif + target_ulong cur_pmmask; + target_ulong cur_pmbase; + + float_status fp_status; + + /* Fields from here on are preserved across CPU reset. */ + QEMUTimer *stimer; /* Internal timer for S-mode interrupt */ + QEMUTimer *vstimer; /* Internal timer for VS-mode interrupt */ + bool vstime_irq; }; OBJECT_DECLARE_CPU_TYPE(RISCVCPU, RISCVCPUClass, RISCV_CPU) @@ -553,12 +553,20 @@ bool riscv_cpu_virt_enabled(CPURISCVState *env); void riscv_cpu_set_virt_enabled(CPURISCVState *env, bool enable); bool riscv_cpu_two_stage_lookup(int mmu_idx); int riscv_cpu_mmu_index(CPURISCVState *env, bool ifetch); +#ifndef CONFIG_USER_ONLY +hwaddr riscv_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); G_NORETURN void riscv_cpu_do_unaligned_access(CPUState *cs, vaddr addr, MMUAccessType access_type, int mmu_idx, uintptr_t retaddr); bool riscv_cpu_tlb_fill(CPUState *cs, vaddr address, int size, MMUAccessType access_type, int mmu_idx, bool probe, uintptr_t retaddr); +void riscv_cpu_do_transaction_failed(CPUState *cs, hwaddr physaddr, + vaddr addr, unsigned size, + MMUAccessType access_type, + int mmu_idx, MemTxAttrs attrs, + MemTxResult response, uintptr_t retaddr); +#endif char *riscv_isa_string(RISCVCPU *cpu); void riscv_cpu_list(void); @@ -566,12 +574,6 @@ void riscv_cpu_list(void); #define cpu_mmu_index riscv_cpu_mmu_index #ifndef CONFIG_USER_ONLY -void riscv_cpu_do_transaction_failed(CPUState *cs, hwaddr physaddr, - vaddr addr, unsigned size, - MMUAccessType access_type, - int mmu_idx, MemTxAttrs attrs, - MemTxResult response, uintptr_t retaddr); -hwaddr riscv_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); bool riscv_cpu_exec_interrupt(CPUState *cs, int interrupt_request); void riscv_cpu_swap_hypervisor_regs(CPURISCVState *env); int riscv_cpu_claim_interrupts(RISCVCPU *cpu, uint64_t interrupts); From patchwork Fri Dec 16 22:05:38 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: 634469 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1082548pvb; Fri, 16 Dec 2022 14:17:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXtbFwZ7KVcg1GSs2A4eZj2b1ewDvFUvFxg1kuQUp2lp7ov3eOTmWEaczexUE8ZeKUdbXG0m X-Received: by 2002:ac8:5ed1:0:b0:3a8:15d2:6e8b with SMTP id s17-20020ac85ed1000000b003a815d26e8bmr1581078qtx.33.1671229024852; Fri, 16 Dec 2022 14:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671229024; cv=none; d=google.com; s=arc-20160816; b=ULlbA36IAwPZqWE7oLmN2zV9XMGzXtr1OcCvGTOH8c4XqoVDzm695vo9mk6jx/Vehk tq+KVsJxYDYLFaobuf98QKHbllx2sySnYYHNXvsem3+UHj1bF3Y2INU8fI2omgWWlL/7 yFLj0HoufDfaSuajAxBGFVrqMWZS6orSWwnuavylkvh1j2acL5sn9VCW68KiHJ5TG8as bouF0XU1LlCfadT/WrBpdjK7iRd10wl7BfKUICgn0iN3VuGKK2ZwHcd/ihjYsiqI8hRE e/AqqIYVSvj9TA5RbWMNajfvdGYax8eXTmwWPV22LhX65TAbbsYjFt0e/6iImTQlZ2aB ukYg== 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=wk4kZcMMisFWgQ9gHzikpbBAxoBtm1ZzojbUpYahP3s=; b=R//5IGbZV1id+FdV0GPy1tZ97aQjvuXnH9TTCSs324MF1XShN/AO4ne6/1/ksj9A4J GcrOjOlYu/nQS9rL/jcHPtOcTrligEcWmE7jskGFDdUadu2XScx+J1h6Kbk9mscr8XQL hk9V1QZ6GDTjSyQ6XlDD/qtiNKElold1JWmRPYxJxbffim7eeLlVa6ZhMcuZgV0TVNta W2PpvKoVBKUJKhP+XSPb3+4zPI1E0UrzFbmhZydofaKsZFnkAYFickVRMI18sjP4ERIQ FT6hrS4C95FepMlKI9zCGk7EqhWV8Xx3z/PlOu9R/ke4i4GDsfI4C8YyVz3psWmmTSAE H9DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q3sgZ7rQ; 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 q52-20020a05620a2a7400b006ff100d1af9si1564845qkp.163.2022.12.16.14.17.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2022 14:17:04 -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=Q3sgZ7rQ; 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 1p6Iqw-0000o1-Cs; Fri, 16 Dec 2022 17:06:50 -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 1p6Iqu-0000k3-MR for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:48 -0500 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6Iqr-0005q9-Q6 for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:06:48 -0500 Received: by mail-ej1-x635.google.com with SMTP id fc4so9189337ejc.12 for ; Fri, 16 Dec 2022 14:06: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=wk4kZcMMisFWgQ9gHzikpbBAxoBtm1ZzojbUpYahP3s=; b=Q3sgZ7rQrMzBb/RIxySP1zj9kYQfTbiDe1cSn4f2jtocd/6ABwK3M5MPvKUNQGH+C6 62sOG5Ulab0flFBoyAkvalhOK0IYAaPKYQmhcW304n6mb1W+7BDaLN2UtWcwrtm0Rs31 mR4fO+lA9CTVRVyKOClXEJPCmUzsbr6g/n11ALE0ziscTabzOq9EZnE84dKrKlcHssNU +qW2481DlkJFvbhMosTtiqjzwOhTXpZM4q3VegC6/rnqDhnfXbTpWAm1qjao90iaz+z3 Agh2fcBafOc6kYbvwhZ18Dvxiv/fCkLy4V+WmT4UThT6R7ekeSQFIykp1fQnM17Q3DS8 0m7w== 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=wk4kZcMMisFWgQ9gHzikpbBAxoBtm1ZzojbUpYahP3s=; b=KbHaxCX21o1ZzKVJMQwvbU4nS+BieXe/A5XBPKNweca7qxKyEnjmwY8MzUcDueMrWq vIAqYYqbVQTYFzL/5GwmeNxtvVHKq4HuN611rHqpK9ldufdtxQMZfx8UEeapwpjzwSM2 NwvIKmhi4JU9UHK0kqBNoSisDQ0FbjuXjibEuvhvnmuDh66uSOjWBjX2x7wCY4kcY8ma rmaS2fOxxDd6H926+eozKUdkXqACTG22vFforKhtClYtfdGhKlkvhTt2VwYx1O3O9f+W oSQhUp8RYTJxlpVFhD0wn29DmRnVmfi2UH5K8DtfSJBaQLNHA0czzviD19k95smdPj6u loPg== X-Gm-Message-State: ANoB5pl27uU8AXUx9Cj3BXQ8rM/vS1LyOXOxxFKYBMND60bBDKVj+ZrE aWQ6xP1ylRNL8QZbvgrhFO46GtlX2LlJelxYQjw= X-Received: by 2002:a17:906:2345:b0:7ad:9455:d57d with SMTP id m5-20020a170906234500b007ad9455d57dmr28429721eja.74.1671228403801; Fri, 16 Dec 2022 14:06:43 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id f3-20020a17090631c300b007c0f2d051f4sm1265763ejf.203.2022.12.16.14.06.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 16 Dec 2022 14:06:43 -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 09/10] target/sparc/sysemu: Remove pointless CONFIG_USER_ONLY guard Date: Fri, 16 Dec 2022 23:05:38 +0100 Message-Id: <20221216220539.7065-10-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::635; envelope-from=philmd@linaro.org; helo=mail-ej1-x635.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 Commit caac44a52a ("target/sparc: Make sparc_cpu_tlb_fill sysemu only") restricted mmu_helper.c to system emulation. Checking whether CONFIG_USER_ONLY is defined is now pointless. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- target/sparc/mmu_helper.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target/sparc/mmu_helper.c b/target/sparc/mmu_helper.c index 919448a494..a7e51e4b7d 100644 --- a/target/sparc/mmu_helper.c +++ b/target/sparc/mmu_helper.c @@ -924,7 +924,6 @@ hwaddr sparc_cpu_get_phys_page_debug(CPUState *cs, vaddr addr) return phys_addr; } -#ifndef CONFIG_USER_ONLY G_NORETURN void sparc_cpu_do_unaligned_access(CPUState *cs, vaddr addr, MMUAccessType access_type, int mmu_idx, @@ -942,4 +941,3 @@ G_NORETURN void sparc_cpu_do_unaligned_access(CPUState *cs, vaddr addr, cpu_raise_exception_ra(env, TT_UNALIGNED, retaddr); } -#endif /* !CONFIG_USER_ONLY */ 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)