From patchwork Mon Aug 28 14:55:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 717730 Delivered-To: patch@linaro.org Received: by 2002:a5d:688a:0:b0:317:ecd7:513f with SMTP id h10csp1231088wru; Mon, 28 Aug 2023 07:56:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG7lDw84CQ7VyazDZ4ayc8O5JjcC8WrpH/yFjZdJbYRtnEqxJXDOuH01a+6FgIhFItvb9la X-Received: by 2002:a0c:f5c7:0:b0:63d:16b3:1fec with SMTP id q7-20020a0cf5c7000000b0063d16b31fecmr14736946qvm.51.1693234612127; Mon, 28 Aug 2023 07:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693234612; cv=none; d=google.com; s=arc-20160816; b=F8p/r0eghakTWtk/64OKJjRMsX9KZ3hqeR5f+NyUz0uAmRbmCzjgXOMC7wDLtudZYV L37P7xX3EhhgKH+L4w9yxgaTbI18cOutFo5rPQG0bJFmTG0ZKalPudoZJe9+0akTLMSB 2hU9CNSSjcxItl8YAPe9OCGJxiDV6xqWJ1UsOA7g3zTA4OS5JVw8KEnXj0lDPvbuWIKc V3O85matN5lYO4wUyoB6za0S6afS+v/r3TWYyHVBC2J39jVo5UTeK9jVviD8NoUxOp/R B1ENb2nd+reUfBAcS5wyi8WNgcWg6SxFyHxffEgOOO7I7apkGRlwV88u3kdH+9IOLQhj TqGg== 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=CDnk9YSeaoJdQRRB9TTsPC8B6FMZ/ZKTWzxCgLttq3Q=; fh=FxYtB1slzL/yn78+bieLaailXu9MIAo7Kb5vkjusizk=; b=lECTaaT3visJV5zztIiPOkk3YWLsrQnODGElYo9jsRnXXjpYIDN3tK3GvKk/K7xKP4 p3YTUS35P5hEywdVttz+okAROogiK7iWIkH0Fup227JnfjQTHedS7iNIooFt/nLFsX+E dyIJpbV+Sei6s/UGFaAJUqGIWXg65I7W86P5jG327c52YRcDW1LiTlBcr3A0BDl9chsT orQfepBb02YVvaRzbwAlaXIZ+i+h5IPGAi2iTxYWojnIRJZZ/2kZ6OdGJ+xVnlbuGFcZ evGinuJdnPtkqWaZL/+v7jlcbLYcWKsClACuDucfAtg4NZS2ir29ssUYrcsFBSjYRh7q Ac3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RX0Ofg5K; 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 u3-20020a0cdd03000000b0063cd7637668si4612068qvk.233.2023.08.28.07.56.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2023 07:56:52 -0700 (PDT) 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=RX0Ofg5K; 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 1qadet-0003GM-Lo; Mon, 28 Aug 2023 10:56:03 -0400 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 1qadeq-0003EK-6u for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:00 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qadem-0000cc-7f for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:55:59 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-401c90ed2ecso11427195e9.0 for ; Mon, 28 Aug 2023 07:55:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693234554; x=1693839354; 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=CDnk9YSeaoJdQRRB9TTsPC8B6FMZ/ZKTWzxCgLttq3Q=; b=RX0Ofg5KAXxE9CDOWpykX8qYJeHS2VRbi9dmFytIAybRaja/e+N1aawJ3Ja7qiw78j uz/xTipwL1cXatc3MLu2VtGxp3fBWQmLGV0EYsWsOpmMVPBL17/wXaMAwTV+4tKvVcO8 J2jeyC1jmzJIhk4XCV817THqBF6btaKqOHUSkl4yoYLfl4GiFjYWXHWBjKW6QDvSvThJ Ub6qbwgv+uygkpb+BlSuY3p2UODY94HNZUiLhCeQ/A4valJmrYNhCGBQvRyifhTdbn0K ZPbra76QKYS8rUU6Ki73MUK7dNR9K0P18fZwvRbej4luWpCnOPMaClw7ioMnOj2XW3To b+nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693234554; x=1693839354; 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=CDnk9YSeaoJdQRRB9TTsPC8B6FMZ/ZKTWzxCgLttq3Q=; b=KQplfe2xVPmRs75iAr+tQIoQ6+QPYYM7DDURhIVTd1GCy60QsmUjJcjZXiziAp0qX9 IaZW5l5w8OjhdqLGVbXxuJr1wJy0ORzrsPiQ/WDjhHfIdE8Qb/sRq+3w07J5y875ZWN6 nHEhpsk8gLXVbr6lo1M7rnLHVXGNDtOT46sLFPtb8Fp4zrXpQ4BVGIQT9wnfaD6XhhTI 1Nk5O0gtTMZp8q+lzssbkPjIDTR1JnsWitqS/RS7TiiSqpaVu2fXfTCELLDcm4KbkZMg +rJwQfPu4WrhvTe4QeeiSnS9u88LBlO5hg8sIJxzjwtxOsxt3jPktYGJFi+Nk64xNWwh jguw== X-Gm-Message-State: AOJu0Ywt618qzLGreXT2ltjQoQqiS+WSIDvBjxyZOr+3BlI0E6kjGmIh jR1Yr99WosKoB9RUBFzIq9KshyuKTCUT53uaxp4= X-Received: by 2002:a5d:688c:0:b0:31a:dc2e:2db2 with SMTP id h12-20020a5d688c000000b0031adc2e2db2mr18174702wru.49.1693234554675; Mon, 28 Aug 2023 07:55:54 -0700 (PDT) Received: from m1x-phil.lan ([176.164.201.64]) by smtp.gmail.com with ESMTPSA id z19-20020a05600c221300b003fee9cdf55esm10908709wml.14.2023.08.28.07.55.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 28 Aug 2023 07:55:54 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 1/8] target/ppc/pmu: Include missing 'qemu/timer.h' header Date: Mon, 28 Aug 2023 16:55:38 +0200 Message-ID: <20230828145545.81165-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230828145545.81165-1-philmd@linaro.org> References: <20230828145545.81165-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, SUSPICIOUS_RECIPS=2.51 autolearn=no 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 Since commit c2eff582a3 ("target/ppc: PMU basic cycle count for pseries TCG") pmu_update_cycles() uses QEMU_CLOCK_VIRTUAL and calls qemu_clock_get_ns(), both defined in "qemu/timer.h". Signed-off-by: Philippe Mathieu-Daudé --- target/ppc/power8-pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/ppc/power8-pmu.c b/target/ppc/power8-pmu.c index 7bb4bf81f7..2537cded83 100644 --- a/target/ppc/power8-pmu.c +++ b/target/ppc/power8-pmu.c @@ -16,6 +16,7 @@ #include "exec/exec-all.h" #include "exec/helper-proto.h" #include "qemu/error-report.h" +#include "qemu/timer.h" #include "qemu/main-loop.h" #include "hw/ppc/ppc.h" #include "power8-pmu.h" From patchwork Mon Aug 28 14:55:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 717735 Delivered-To: patch@linaro.org Received: by 2002:a5d:688a:0:b0:317:ecd7:513f with SMTP id h10csp1231676wru; Mon, 28 Aug 2023 07:58:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFaJZ5fhs8LLOosv8mgwpN4RZf+UUXCWqPO/AAQIP7O5b+lN+w+6zk4xfizRWJCQlyw15ib X-Received: by 2002:a05:620a:b03:b0:765:3ca0:3708 with SMTP id t3-20020a05620a0b0300b007653ca03708mr23831120qkg.75.1693234693668; Mon, 28 Aug 2023 07:58:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693234693; cv=none; d=google.com; s=arc-20160816; b=JxduVpcc0koJvbzY+7I0tkjz5ms5p69FqVPydzAPm0cfvx0x6Yv4zIb+WYDRdo8+Iq bSFmi/BLKp8ey6FZdTO/4Di4fMkMSnn1cTZJH+oOuCNPbz1TUM73jSNAFFbzWF2BYJbj Gdgo1ieKX5Xczq+TzT97PhIjeOHv98r2hgFdkFLztbl35q2PE0arvKWZOurwzjd3LjhB c9snPVl4kHC+zuBK9nqQ2O0UW4vWVm284TS28UQizwvN2FyBETWkc3YuB3ah+kIgSPHp ZRmRYEg24hUPaK+/+zeepk3cNDVNuj+qVPWhy5lUKeuEngDydnUCGwJIaCy7plOjhVto pozg== 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=uMoJnfVgaQ/gSCJ1EcKalX6fTZe7ML+oEsM4UrP9ySg=; fh=FxYtB1slzL/yn78+bieLaailXu9MIAo7Kb5vkjusizk=; b=Sr/B/CR8KK8slqlnDcRshrrq3/YvKcNo1RcEOedtvYI30PZJ81ylZoqVVDCTP4T1G5 fT34/seOj6lkhFwQfWDViGSDZWAS+qzMBaxGpyQNhwS2aWmCZknq7y9Xt0IgwlR+he1G kX+ldKSKOqs7s9NK4k/mmyYCMlnaQLDTmQGNiEaNz8RuScE+9qSarzp5K7+K5aMgXC60 1fYYvKKJurH/2gRR+FEsqiWjFQLnFVe8W3RfhEiTfP+tbtIlbWV2bp3flrStbJoALVeM 24cKrzLn8E5++hfcnXhzovn0P9pnuCrA8LFzOeBNeAKRM4FwHL2hEfIgwlCtwZ4/7DEI cI3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uCSFkD5X; 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 j10-20020a05620a288a00b00767d62f3e9fsi4843719qkp.599.2023.08.28.07.58.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2023 07:58:13 -0700 (PDT) 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=uCSFkD5X; 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 1qadey-0003Mj-Ty; Mon, 28 Aug 2023 10:56:08 -0400 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 1qadex-0003M1-CH for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:07 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qades-0000dm-8g for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:07 -0400 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-31c73c21113so2956290f8f.1 for ; Mon, 28 Aug 2023 07:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693234560; x=1693839360; 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=uMoJnfVgaQ/gSCJ1EcKalX6fTZe7ML+oEsM4UrP9ySg=; b=uCSFkD5XYs+JG7QevWUjwPqUs+YDJlAC0VDk50eqnjdwrUIj1qOTjR/1oKNiZq2zEF NgHOFpOtrkh4rxtgVZ6n2rNBFJhzXxwEyzLYL+YcGN2gv4SR9kQQaZ+/QvIOn/ZsK+yH W9LAcAOH1mGBWQPB5gh6j+RuKSOcANjzttCYDJiPPa0Dvwl2topmI2jnCS0h4iAbYyO0 SOi9bfIbqJ+yxCE6lQKtU5/o2VVYisy0SFGgRAd3HRSaJyEElou1GYE2Wqs1TvL8vh3L ZYMfZxTSsyKhp3k5OZutWI0X64LpSxM10MfA69i8znvKG76sOyyT4BJ4WtZv4isg2yyh utsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693234560; x=1693839360; 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=uMoJnfVgaQ/gSCJ1EcKalX6fTZe7ML+oEsM4UrP9ySg=; b=PSo0zJ4QoZDv98i+O0Ikp9WyW3RXWvsrY5hS+xozeQe8nybcXRhb1bXcbN3P9WpJ/R KnSnVPnvxjsofcbj5Ydh++xO7nw0LSvVvC/UQki6ZIY8AFHG9+QfeP8wljRC4gbo7qbl sGI0zY/OdZQlDLrluzU0Lp8SNrAZbVTWbfZ6jRM8n99aKgJzKeD/C6AM4zGvsIlWqZZj CdU00FJA0/YtF+cGSExPIqIZAQpCX2yIsQR13xk020fo+6Q653ihmdVna/wB0DfK96QR lPn6quCFKQd/qEVIcaFRSdrJSLQfRynwcrAm6JstZwwUWW0SRvYGLhTCdUzwYQGo7Xbr CfFA== X-Gm-Message-State: AOJu0Yx4GeFy9f1BmpsgOpiqeRWNpqzCaS/7LpAtZlKOiChD1wIpoAh2 yJp8VdgOc2TMNqFIJZsrniraOvGT47xcvy3x5qY= X-Received: by 2002:a5d:4988:0:b0:31a:e6c2:770d with SMTP id r8-20020a5d4988000000b0031ae6c2770dmr17008877wrq.36.1693234560409; Mon, 28 Aug 2023 07:56:00 -0700 (PDT) Received: from m1x-phil.lan ([176.164.201.64]) by smtp.gmail.com with ESMTPSA id a16-20020a5d5090000000b0031432f1528csm10721106wrt.45.2023.08.28.07.55.59 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 28 Aug 2023 07:56:00 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 2/8] target/riscv/pmu: Restrict 'qemu/log.h' include to source Date: Mon, 28 Aug 2023 16:55:39 +0200 Message-ID: <20230828145545.81165-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230828145545.81165-1-philmd@linaro.org> References: <20230828145545.81165-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=philmd@linaro.org; helo=mail-wr1-x42c.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, SUSPICIOUS_RECIPS=2.51 autolearn=no 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 Declarations from "riscv/pmu.h" don't need anything from "qemu/log.h", reduce it's inclusion to the source. Signed-off-by: Philippe Mathieu-Daudé --- target/riscv/pmu.h | 1 - target/riscv/pmu.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/pmu.h b/target/riscv/pmu.h index 0c819ca983..d2be06a133 100644 --- a/target/riscv/pmu.h +++ b/target/riscv/pmu.h @@ -16,7 +16,6 @@ * this program. If not, see . */ -#include "qemu/log.h" #include "cpu.h" #include "qemu/main-loop.h" #include "exec/exec-all.h" diff --git a/target/riscv/pmu.c b/target/riscv/pmu.c index db06b3882f..36f6307d28 100644 --- a/target/riscv/pmu.c +++ b/target/riscv/pmu.c @@ -17,6 +17,7 @@ */ #include "qemu/osdep.h" +#include "qemu/log.h" #include "cpu.h" #include "pmu.h" #include "sysemu/cpu-timers.h" From patchwork Mon Aug 28 14:55:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 717733 Delivered-To: patch@linaro.org Received: by 2002:a5d:688a:0:b0:317:ecd7:513f with SMTP id h10csp1231548wru; Mon, 28 Aug 2023 07:57:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHOQi92Vz30JlxPJ6p/vO7ANXVoQi/JT1+9mQnGf/NC2+eUqFN3T/+ZVVYljMe17oeVE2NC X-Received: by 2002:a05:6358:93a5:b0:13c:cb77:8da with SMTP id h37-20020a05635893a500b0013ccb7708damr7686932rwb.1.1693234677639; Mon, 28 Aug 2023 07:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693234677; cv=none; d=google.com; s=arc-20160816; b=jZdWiuk55NBbh7gBdQ/OI2f88BHFJAHMsRPw6z4JdgGDGoE8jyTdHN7+cf6zThXAUa Mj9EhfxOdZwdyH5O42uNH5qLeCzigMhpFomelTdgIWt2SxMhLZtYTBZJPJOQWRrYCuMO 3LYMmX9+17Q37uafbAkZ04cyLCFscsa48MmxFF0XcOCFRHazUWNFAEgPJCXQRgUK/Lvm cuNZrhTEXznSWcPVGK21bHUHL0U7+mW7aKVF7jJ1CFHv9AlmRza0rIA7mRuc8OdHdsvp jOUPTGRk15E19tSHyX3vXVoW7S/QUy+SKLg8uI0E2+RnBuGNOQXE73ZJKDXsx1EqoOH/ FsUQ== 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=zXtDlBaV4QYBxAWaYJ7Na+553ToqZMUDyRUVndMkrKA=; fh=FxYtB1slzL/yn78+bieLaailXu9MIAo7Kb5vkjusizk=; b=Nw3u451vGN8psqUoQJVL2dryVAsTdtGcOhniqFl9Ihkjn82A+mNu8gX+yUUKXnKycG Ru+grNFeOit/AXDBI7gPov8c7slU5Xng9OVAaWUd1kucNzkdrtR564H+aMScm332TlZU GcUu5pmfqOazi6OEIgodL/BeHGzTwlnBvOgOl/q4xlhzwqepa9BEQ98e+53wuYIgU1Yu W7Idq7/pxFabMRh/ZYr+QrNyAiikjfIk8ofez7ts7Eru0klMtUUILWMSD1qaEb0SGlJr qfGkqMzkM2+4mShet+lCYqOcx0nk78uBcQ+W046FzTOGDVSEFrfedNhDw9ucJmdFh+CO 6JCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fi5EfCZi; 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 m15-20020a05622a118f00b004109b93a867si4817927qtk.474.2023.08.28.07.57.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2023 07:57:57 -0700 (PDT) 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=Fi5EfCZi; 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 1qadf3-0003PQ-Pp; Mon, 28 Aug 2023 10:56:13 -0400 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 1qadf1-0003OF-UF for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:11 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qadey-0000fJ-5q for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:11 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-401b393df02so32141295e9.1 for ; Mon, 28 Aug 2023 07:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693234566; x=1693839366; 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=zXtDlBaV4QYBxAWaYJ7Na+553ToqZMUDyRUVndMkrKA=; b=Fi5EfCZizUdiyM0qhIfy80uUGXGeZVRvKB9AepVxClNSEo6fT6nngK8MSTGmXkWK0J InhkoXhL2bUvjJ6axowNG38eNED0WMXI3DfdsUs02Rz2ud2mM+A9J458X5y23fmFxkXo 9C8mEU/zNMzlGragzyORb9jNcDuTdF+XWrS7LFMCghJO91UhzSaGannkoTynSUO++jTu TMz0rN5jG6hGQWsL0Cdk70Lq1Kmm1SmfWgE/tzfpPVeyrpiK8OZgjBqBqAg4IQSTQJ0v U+d0cYH89eaIrlt7rX2+6rFoua8AG8BPW7vN4uq/ZJUNCRWpOFnpZSBg1BMx6uPAMu0+ 5uOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693234566; x=1693839366; 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=zXtDlBaV4QYBxAWaYJ7Na+553ToqZMUDyRUVndMkrKA=; b=GPzJncewIdhhv27n3FzzOKJ9g7Gr3J9OTRDC6lgDQV7QwoqKu0OfSx84oab9IVjxLR syUjd/6H7LpWhxwLtzBUhnF2//1mhbZEgt+GAWcbGqc9Bnwi3VOlTZEMLcJTUrmepves S6mPBJUu2TH0mWDsJQ2r9gepIKUm5gIVVgNN9Ka0npcOSINnkdQ4p29HlMOVFUc8AQT8 w5n12wiOhBC55rzdFJrWUPV4ufKqmHdMu2lIspOGLHfmWkEXlVedTUgN4jfQfZ6q0XZy wdIG0xumoOjxVpaQqIOkoxKR07Pq0eyqDTAOEF5M3HMT14r+5tpswoqKnYd+EZoJhC3B p16w== X-Gm-Message-State: AOJu0Yz4h0jyZmqJPPdkfxE4jQkBhScsBoHJNwzUQ0x/nW1QbOLXj7O/ gdaSp39hEA4pUKqhdaLUg3Lzle4nMNV/Mfgu8h0= X-Received: by 2002:adf:ee8b:0:b0:319:6997:942e with SMTP id b11-20020adfee8b000000b003196997942emr18952747wro.8.1693234566159; Mon, 28 Aug 2023 07:56:06 -0700 (PDT) Received: from m1x-phil.lan ([176.164.201.64]) by smtp.gmail.com with ESMTPSA id h14-20020a05600c260e00b003fefb94ccc9sm10943778wma.11.2023.08.28.07.56.04 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 28 Aug 2023 07:56:05 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 3/8] target/translate: Include missing 'exec/cpu_ldst.h' header Date: Mon, 28 Aug 2023 16:55:40 +0200 Message-ID: <20230828145545.81165-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230828145545.81165-1-philmd@linaro.org> References: <20230828145545.81165-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, SUSPICIOUS_RECIPS=2.51 autolearn=no 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 All these files access the CPU LD/ST API declared in "exec/cpu_ldst.h". Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/avr/helper.c | 1 + target/i386/tcg/fpu_helper.c | 1 + target/i386/tcg/sysemu/excp_helper.c | 1 + target/loongarch/cpu.c | 1 + target/mips/tcg/ldst_helper.c | 1 + target/mips/tcg/msa_helper.c | 1 + target/riscv/op_helper.c | 1 + target/riscv/vector_helper.c | 1 + 8 files changed, 8 insertions(+) diff --git a/target/avr/helper.c b/target/avr/helper.c index e6e7d51487..fdc9884ea0 100644 --- a/target/avr/helper.c +++ b/target/avr/helper.c @@ -24,6 +24,7 @@ #include "cpu.h" #include "hw/core/tcg-cpu-ops.h" #include "exec/exec-all.h" +#include "exec/cpu_ldst.h" #include "exec/address-spaces.h" #include "exec/helper-proto.h" diff --git a/target/i386/tcg/fpu_helper.c b/target/i386/tcg/fpu_helper.c index 6f3741b635..4430d3d380 100644 --- a/target/i386/tcg/fpu_helper.c +++ b/target/i386/tcg/fpu_helper.c @@ -21,6 +21,7 @@ #include #include "cpu.h" #include "tcg-cpu.h" +#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h" #include "fpu/softfloat-macros.h" diff --git a/target/i386/tcg/sysemu/excp_helper.c b/target/i386/tcg/sysemu/excp_helper.c index b5f0abffa3..226689a4f2 100644 --- a/target/i386/tcg/sysemu/excp_helper.c +++ b/target/i386/tcg/sysemu/excp_helper.c @@ -19,6 +19,7 @@ #include "qemu/osdep.h" #include "cpu.h" +#include "exec/cpu_ldst.h" #include "exec/exec-all.h" #include "tcg/helper-tcg.h" diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index 27fc6e1f33..65f9320e34 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -11,6 +11,7 @@ #include "qapi/error.h" #include "qemu/module.h" #include "sysemu/qtest.h" +#include "exec/cpu_ldst.h" #include "exec/exec-all.h" #include "cpu.h" #include "internals.h" diff --git a/target/mips/tcg/ldst_helper.c b/target/mips/tcg/ldst_helper.c index c1a8380e34..97056d00a2 100644 --- a/target/mips/tcg/ldst_helper.c +++ b/target/mips/tcg/ldst_helper.c @@ -24,6 +24,7 @@ #include "cpu.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" +#include "exec/cpu_ldst.h" #include "exec/memop.h" #include "internal.h" diff --git a/target/mips/tcg/msa_helper.c b/target/mips/tcg/msa_helper.c index 29b31d70fe..c8597b9e30 100644 --- a/target/mips/tcg/msa_helper.c +++ b/target/mips/tcg/msa_helper.c @@ -22,6 +22,7 @@ #include "internal.h" #include "tcg/tcg.h" #include "exec/exec-all.h" +#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "exec/memop.h" #include "fpu/softfloat.h" diff --git a/target/riscv/op_helper.c b/target/riscv/op_helper.c index 9cdb9cdd06..7e2f1908ee 100644 --- a/target/riscv/op_helper.c +++ b/target/riscv/op_helper.c @@ -23,6 +23,7 @@ #include "internals.h" #include "qemu/main-loop.h" #include "exec/exec-all.h" +#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" /* Exceptions processing helpers */ diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index 4d06754826..e3ef2113d6 100644 --- a/target/riscv/vector_helper.c +++ b/target/riscv/vector_helper.c @@ -22,6 +22,7 @@ #include "cpu.h" #include "exec/memop.h" #include "exec/exec-all.h" +#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h" #include "tcg/tcg-gvec-desc.h" From patchwork Mon Aug 28 14:55:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 717732 Delivered-To: patch@linaro.org Received: by 2002:a5d:688a:0:b0:317:ecd7:513f with SMTP id h10csp1231526wru; Mon, 28 Aug 2023 07:57:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFl57LWKfOuAk0lHgllWg92tKmbJeTHkRY4ddlEq/N4taKameNNkUqaPi883FZjZMX5ruYm X-Received: by 2002:a0c:a999:0:b0:64b:e135:a3b0 with SMTP id a25-20020a0ca999000000b0064be135a3b0mr27090557qvb.19.1693234674469; Mon, 28 Aug 2023 07:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693234674; cv=none; d=google.com; s=arc-20160816; b=mNVB/4XB24/qpLAbmsMASBIvCc3troO5ai0Qdu8FzUYIDVFE0Ua3QNExr++ldvupRM 8Xq7EEDBD/vio2fVjD66Sp1btWj2W4b1Hp30Cl3CfeTo6QZDIws6X+OLQiNRubHVw9SS OolqyI1lzh/wBAM5Y3Oy6msPyCA25vZDxMY5bLrJHJxdUohfLwiKrRzFiR/XjvaTunSf 4BKwY/wALKrMfzNSiVG/xkPdy8OxWl/sEQu+nYKSvZvk+x0tfg7NT26WpW+C66ZYSTlQ Ge80XGjv1IG655i8bOJuYhxHotEPjzN8bOZEEhVnOJMwkUgcVySEpOF/vWXczOBCXI7t BpRQ== 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=9xZkdiA8sqUe1S8Q9uqQo08DahS7TNnMVPj2P4ZyMvE=; fh=FxYtB1slzL/yn78+bieLaailXu9MIAo7Kb5vkjusizk=; b=DtHWpxdo1Oq+NEbjFovyzlwR1ttwZ7pHUUuJYtzaKaTTPQ72j8+LFS1qj9HQbiWEbF zrosbSh1pTA6Rd+ye5d0JtZhkf4ySztJyOyBrgnxIy5rTBPs8ehI+MYXLLtIKtyoheBd unnu7twCNmKId4BgOtbLS1rOh1COzhAMiYhVmzYNJvjtA4ZKm25oU9VL4kn088BRl3lq 7N7I4d1b4rQTlBlZVJNTbGKajJddV6fT3btUbtnpt1WhTvJ2Z2ozaxvPWlWZXRqP4gOS KwP/lU687GrhU5VdUvdKL2X7smu9vRpNJgqvW6wMg+NYOAw4782fRvYSt8ACS4L3mp27 Tztw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qcA2srww; 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 h9-20020a0cf409000000b00646be73c680si4625257qvl.133.2023.08.28.07.57.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2023 07:57:54 -0700 (PDT) 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=qcA2srww; 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 1qadf8-0003Ra-KQ; Mon, 28 Aug 2023 10:56:18 -0400 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 1qadf7-0003Qz-SJ for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:17 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qadf3-0000gO-O1 for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:17 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3fe32016bc8so28557395e9.1 for ; Mon, 28 Aug 2023 07:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693234572; x=1693839372; 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=9xZkdiA8sqUe1S8Q9uqQo08DahS7TNnMVPj2P4ZyMvE=; b=qcA2srwwSQMvlJ1aQK3DsTA9hoCoRhpkLfHKTfcQ3BtVieCHQ6ESGa2e9fvogENzOp si3gL54/crLwqxaIEv6IuK1KEKM9gJTiw8fhYt5vADH9fAe+OjDw/lQ5NjTMsLPhcxCc 9xabPVfHxwiY1feBNs1LHJBKPDlYfgQPP5jGCRA1whqwFqEwTuhe+oHsc+hf50yjPfAB fAFFp+yRKQVSX4oiITvH5mqg8+MmAYTm0ueAGFoJNUoO/5k2Zs9o3WCEHiRVZ1plov5a GLY8JaxXa/Q8FWmpEBTl9J9Ou3mDoiA+cVBP7H0yk3wpusISlLvTKCriSSRXM2Q153qw Q9Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693234572; x=1693839372; 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=9xZkdiA8sqUe1S8Q9uqQo08DahS7TNnMVPj2P4ZyMvE=; b=aJgYynX5DUsttopI4Wn/tq/KY9uhIqHRHh+N8Ti6bKpBYjnd/OfIF2vk1pE9MK66J1 W8/RXJZXtvExjKUOucm3Y7N+Y+8ioC52UdhYhzGuMSk9R7QSYFHdX4GXapZBLUVJFW3g O3kDhNOyOC+ZbpeK9BbT9IEKq+kfgWQsbnQ7r+fPcsPNw/4cfnvja8AWr5bJigkysSWH EhaKRWQoMXEasycvjKuXVWmO/dtkp2dx9Zm8pyj91EJIW8nMuECrHDMoKNoq+uyCK/mB IUEXeEqYFmwoiCtb/3zF4A7BJjXsGQEroF4O5nsaUTiqCFT8Dh/iirY9751V71tKVTZO Mj5w== X-Gm-Message-State: AOJu0YwgvKOefQVXt+E5wz63m+q9QYeLnN4V2Kl4FWozRL7Rzrewxz2l c/Tg3v8dp64Jp2NkERETkcRqDuNNPiN28mfS+4o= X-Received: by 2002:a05:600c:2284:b0:3fe:e842:60a0 with SMTP id 4-20020a05600c228400b003fee84260a0mr17830834wmf.31.1693234572113; Mon, 28 Aug 2023 07:56:12 -0700 (PDT) Received: from m1x-phil.lan ([176.164.201.64]) by smtp.gmail.com with ESMTPSA id k4-20020a05600c0b4400b003fe0a0e03fcsm14094586wmr.12.2023.08.28.07.56.10 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 28 Aug 2023 07:56:11 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 4/8] target/translate: Remove unnecessary 'exec/cpu_ldst.h' header Date: Mon, 28 Aug 2023 16:55:41 +0200 Message-ID: <20230828145545.81165-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230828145545.81165-1-philmd@linaro.org> References: <20230828145545.81165-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=philmd@linaro.org; helo=mail-wm1-x335.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, SUSPICIOUS_RECIPS=2.51 autolearn=no 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 All these files only access the translator_ld/st API declared in "exec/translator.h". The CPU ld/st API from declared in "exec/cpu_ldst.h" is not used, remove it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/alpha/translate.c | 1 - target/hexagon/translate.c | 1 - target/hppa/translate.c | 1 - target/m68k/translate.c | 1 - target/microblaze/translate.c | 1 - target/nios2/translate.c | 1 - target/openrisc/translate.c | 1 - target/ppc/translate.c | 1 - target/sh4/translate.c | 1 - target/sparc/translate.c | 1 - 10 files changed, 10 deletions(-) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index 846f3d8091..d73ed28da0 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -24,7 +24,6 @@ #include "qemu/host-utils.h" #include "exec/exec-all.h" #include "tcg/tcg-op.h" -#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "exec/helper-gen.h" #include "exec/translator.h" diff --git a/target/hexagon/translate.c b/target/hexagon/translate.c index 708339198e..c00254e4d5 100644 --- a/target/hexagon/translate.c +++ b/target/hexagon/translate.c @@ -23,7 +23,6 @@ #include "exec/helper-gen.h" #include "exec/helper-proto.h" #include "exec/translation-block.h" -#include "exec/cpu_ldst.h" #include "exec/log.h" #include "internal.h" #include "attribs.h" diff --git a/target/hppa/translate.c b/target/hppa/translate.c index d66fcb3e6a..e57ac57338 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -23,7 +23,6 @@ #include "qemu/host-utils.h" #include "exec/exec-all.h" #include "tcg/tcg-op.h" -#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "exec/helper-gen.h" #include "exec/translator.h" diff --git a/target/m68k/translate.c b/target/m68k/translate.c index e07161d76f..5e68159634 100644 --- a/target/m68k/translate.c +++ b/target/m68k/translate.c @@ -25,7 +25,6 @@ #include "tcg/tcg-op.h" #include "qemu/log.h" #include "qemu/qemu-print.h" -#include "exec/cpu_ldst.h" #include "exec/translator.h" #include "exec/helper-proto.h" diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 7e7f837c63..d02c16296a 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -24,7 +24,6 @@ #include "exec/exec-all.h" #include "tcg/tcg-op.h" #include "exec/helper-proto.h" -#include "exec/cpu_ldst.h" #include "exec/helper-gen.h" #include "exec/translator.h" #include "qemu/qemu-print.h" diff --git a/target/nios2/translate.c b/target/nios2/translate.c index 4264c7ec6b..dfc546d3bb 100644 --- a/target/nios2/translate.c +++ b/target/nios2/translate.c @@ -29,7 +29,6 @@ #include "exec/helper-proto.h" #include "exec/helper-gen.h" #include "exec/log.h" -#include "exec/cpu_ldst.h" #include "exec/translator.h" #include "qemu/qemu-print.h" #include "semihosting/semihost.h" diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c index a86360d4f5..30ff63ac0b 100644 --- a/target/openrisc/translate.c +++ b/target/openrisc/translate.c @@ -26,7 +26,6 @@ #include "qemu/log.h" #include "qemu/bitops.h" #include "qemu/qemu-print.h" -#include "exec/cpu_ldst.h" #include "exec/translator.h" #include "exec/helper-proto.h" diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 74796ec7ba..49b6a757b7 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -27,7 +27,6 @@ #include "tcg/tcg-op-gvec.h" #include "qemu/host-utils.h" #include "qemu/main-loop.h" -#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "exec/helper-gen.h" diff --git a/target/sh4/translate.c b/target/sh4/translate.c index 49c87d7a01..c1e590feb3 100644 --- a/target/sh4/translate.c +++ b/target/sh4/translate.c @@ -22,7 +22,6 @@ #include "disas/disas.h" #include "exec/exec-all.h" #include "tcg/tcg-op.h" -#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "exec/helper-gen.h" #include "exec/translator.h" diff --git a/target/sparc/translate.c b/target/sparc/translate.c index bd877a5e4a..3e108fb19a 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -25,7 +25,6 @@ #include "exec/helper-proto.h" #include "exec/exec-all.h" #include "tcg/tcg-op.h" -#include "exec/cpu_ldst.h" #include "exec/helper-gen.h" From patchwork Mon Aug 28 14:55:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 717731 Delivered-To: patch@linaro.org Received: by 2002:a5d:688a:0:b0:317:ecd7:513f with SMTP id h10csp1231402wru; Mon, 28 Aug 2023 07:57:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+2Qdpd8twVyFT4wsPb/anrYSV0ea9MIJz/G2fHt9hC3EWf++mRcz3u49aYhOMA+T92PTk X-Received: by 2002:a05:620a:4541:b0:76c:cce2:e7d5 with SMTP id u1-20020a05620a454100b0076ccce2e7d5mr27439135qkp.62.1693234657545; Mon, 28 Aug 2023 07:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693234657; cv=none; d=google.com; s=arc-20160816; b=vdA+1WHzRx+mjTiKjwUpdikz7J0LcMrKdgEpsXKadcmcVoj1JUKn1mYrlfT9dwm7f5 YKKc6BrA5JDN0mRACNLPRBPXm2C9hfb5lP9qNXqCBC2kEfcT1uaOWT110+95MAuF58sI s2bQFiFM4iJp5IRmLyq+q2LeoOQtYcNb9Zoeb6wk83ESZbIY5eQoOewGgjmYIOoJgS5T NnVFWYHV8BKh0W1GZsBCxF5Yi8qbCiymurieezK94bXxESGN4zpjazPvMzsm8m1AOHUC fWunij+50xlTO7w/5LPypPboCBgGq0geA8slRx7tD+AOslT4KBW5+/o60oOfdPXT0nib sGKA== 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=L0c9RUkLqeb/dUA6rdk/b7YWrq3qs8i6j4y2xORygss=; fh=FxYtB1slzL/yn78+bieLaailXu9MIAo7Kb5vkjusizk=; b=yJKNyWpe+FSmWLC/t5hyzMarHovOoz/4KN9paFSt9Fck1XcFyoF6OH7K22SE5sqIkp TwcRFeea7E8JoCelUALbtyNgMa2WQ6sADYPIeSaFTh6hNBxkSXstuBw3sU1lDJK0In6M 1zleNF8w7eFgmEq6zFnBLOgOndKTXgRkN+K3VLeEmNQWgFvc8ta4u+6DrSgHjSaAk8Gq B8QoYZucorZe/g75/KUVFjEP7E0GfM8dcazbul7iCLu4sjweSarJo90PSFbfjx7yvlPj SvavNys7QiadYrmU+d1GkCobhD4qXZDau6xbEpT88lEf58Q7RfJ/yFZrKH/5zjkrcLUG jQ3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lMCqUxq3; 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 dz3-20020a05620a2b8300b0076da2abc9f2si2771047qkb.447.2023.08.28.07.57.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2023 07:57:37 -0700 (PDT) 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=lMCqUxq3; 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 1qadfF-0003XD-Dp; Mon, 28 Aug 2023 10:56:25 -0400 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 1qadfD-0003Vh-2F for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:23 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qadf9-0000hk-AO for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:22 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40078c4855fso31107395e9.3 for ; Mon, 28 Aug 2023 07:56:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693234577; x=1693839377; 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=L0c9RUkLqeb/dUA6rdk/b7YWrq3qs8i6j4y2xORygss=; b=lMCqUxq3kCSkpFfLlHaGc43t/H8kjzJrNqZwgE8+i7pZkWKd3kZ6qy0MIKlsaTCpa7 OZd840XQDIqp+YbIlyMK96SA3+Xs6c1VkYI9QAQOfLhuDkng2U0COkn3itO7AxYGkY4X 5QeCCX2OKwa08nsl1O2CPfZmYZyqJ9eh3k/p8K1EFfout35o2I09Nh9iuMeQNumMrOrP 7tyeLSDXjREbmxvF4BioxA5wP18FUatwWiz/Q2rR+12L9XkZYA5RZb3riKR6ahx3gSo+ P+70K9Sub584uZBhO4dbH8smLwYTtfKGr82TYCsDFCbL/IwKvjNuFMPqEbs3UfpPrmGV Vq7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693234577; x=1693839377; 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=L0c9RUkLqeb/dUA6rdk/b7YWrq3qs8i6j4y2xORygss=; b=aSIJgNuL3QQooUhWTk9QxOQavhMl3rO5LaGFGEyg8PRryyjwNDCDM9d52J73Edj0Gt +B1s2tTS9gogthP8d12dezPyEU2uSBJc000BTdpcPTvckhTUsNsV1Vwt89cRAlKeBQFH o60Dl4WdeDDTMjvwAWuovt1QeXVlks9d4GRsDOyLdnpXp8Ut0LSpRwsdyITf7AzI2K70 gIk/2SIOjQlV+XFcu9a+NvXT0BAtlzxNprX/YBjuh5Y+obajzT32+pEKcs8N9mMiMHZx PDlwdc7Jm+SnRkXCLKTIqQYL7zGpZDJSo1bbe3dqZdnERSh4gmWFCgEGIKB9rxs64crm KQfQ== X-Gm-Message-State: AOJu0YwNNy7H5xXHKUP4OzQtr3LSUscoCwmo8O94eVrO6iAWwp2S7AGP ZIKMGNF58IoY7FNlFFC/gmBy1Ga14KJmfQ5Z/Co= X-Received: by 2002:a7b:c455:0:b0:401:c436:8999 with SMTP id l21-20020a7bc455000000b00401c4368999mr3828849wmi.30.1693234577802; Mon, 28 Aug 2023 07:56:17 -0700 (PDT) Received: from m1x-phil.lan ([176.164.201.64]) by smtp.gmail.com with ESMTPSA id g12-20020a7bc4cc000000b003fed8e12d62sm11070682wmk.27.2023.08.28.07.56.16 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 28 Aug 2023 07:56:17 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 5/8] target/translate: Restrict 'exec/cpu_ldst.h' to user emulation Date: Mon, 28 Aug 2023 16:55:42 +0200 Message-ID: <20230828145545.81165-6-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230828145545.81165-1-philmd@linaro.org> References: <20230828145545.81165-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, SUSPICIOUS_RECIPS=2.51 autolearn=no 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 Only handle_sigsegv_accerr_write(), declared with user emulation, requires "exec/cpu_ldst.h" (for the abi_ptr typedef). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- include/exec/exec-all.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index d02517e95f..b2f5cd4c2a 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -21,7 +21,7 @@ #define EXEC_ALL_H #include "cpu.h" -#ifdef CONFIG_TCG +#if defined(CONFIG_USER_ONLY) #include "exec/cpu_ldst.h" #endif #include "exec/translation-block.h" From patchwork Mon Aug 28 14:55:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 717737 Delivered-To: patch@linaro.org Received: by 2002:a5d:688a:0:b0:317:ecd7:513f with SMTP id h10csp1231780wru; Mon, 28 Aug 2023 07:58:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHw3e6cCSA++kd9wExGqjVK7VxWUYuHJrHM8toc8Bezews9mDVtB5ol+1eF+enFvS1PKiHv X-Received: by 2002:ae9:e70d:0:b0:76d:9270:87b with SMTP id m13-20020ae9e70d000000b0076d9270087bmr26243564qka.15.1693234708426; Mon, 28 Aug 2023 07:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693234708; cv=none; d=google.com; s=arc-20160816; b=lySovE5RS/Zcu7f3URE4t+Oj9ETMJuXkrVtbhJJRg9uR10jYL7UoNuZAfQiCkW+O45 CDbYsVRXfQoKAposm1s8N/BolunTa7gZ8a2PDndovWjuOyfZBzTSVcP+xap7cuiYrjqJ PC7VCMTRptFcxmFXIrjciU3gTKV2PAfOd/rEGkMbl6yMOXljCEOjRjyd7FEAcbfvMNUh tIfhrMBig9XfEerEy3AfdynKPclOowuFkgcIICsgT3p7k0lQMa//jnngD1jJcKsgcUZx aVfE/tW/DT8JcRGt5cMTEK4CTNmbvXDBAq6EPmMkbHJA4RD7AJGPiWQ1gb4mQZXN/wTO j2Yg== 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=u0Lad22grnmmVAIA9RRmXOBjrMZHt2ARUrmeTwnSYEw=; fh=FxYtB1slzL/yn78+bieLaailXu9MIAo7Kb5vkjusizk=; b=OGx/ZAdCvN272ge4kG/i4jJMegexMr7v9IP4I64wRnIdJzvd+dw0NXv8pECAvstQwp JD7xs19cguMY0qrtqtV7nzk1GptWz96/SVm13PW6LVHah8r1wddB6jwVu2/vBP1KOT/u +E3RJ7DnVWJJdcLf7zlpHTCFBZfRbRzfzn4D/gIgHCEeML6Bk73hUfOeUe48sMgq8tTD 3cOVi62OEXbXOARUdIwwHGbzYH0zUaQTDOvzgbrcsVg6gXSVYsdFkO+TL0xRIMJC1cZU 5fVRzbGgjU9K6iE76TO+NEptSWEOHX6ToI4u4Lx0BipQC6XX51JIEMuPAq5fUyFV7um+ SV7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sIhBp5xa; 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 16-20020a05620a04d000b00767da14f0cesi3317827qks.13.2023.08.28.07.58.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2023 07:58:28 -0700 (PDT) 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=sIhBp5xa; 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 1qadfK-0003aY-47; Mon, 28 Aug 2023 10:56:30 -0400 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 1qadfJ-0003Zg-0W for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:29 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qadfF-0000kx-3M for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:28 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-31c5a2e8501so2810221f8f.0 for ; Mon, 28 Aug 2023 07:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693234583; x=1693839383; 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=u0Lad22grnmmVAIA9RRmXOBjrMZHt2ARUrmeTwnSYEw=; b=sIhBp5xaGntcvfdc1Ktm6Wjl8YcnEbjFPWQM/QFFhOGmSw6IaFbyNz5GeB0Dzdnre+ JGPcKOuZso4emL4nVdsMZwQ+nYMi7a5zlZobka8mh4HveupOwaur72TV5kANHiOBcm17 4+5mG2yXLT7QJE+Lvn6hj7OVKIkQK0gnbize3sb9y+OZSpT3HQCRBCIWPs4WJu/P1cYW LjP6Y0bU+QzRrUKOQVMwsxnfIn6fT/lEvu5hKKuSICilioGhRy6VLW7gRDFKun/3Kn2d 5RBVaZ5pE4tnEoflZhyK9IJhqNjP7w6J8JpSd98Brs/bffpBsLUMbOgnsOnlXYMAJ872 mrXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693234583; x=1693839383; 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=u0Lad22grnmmVAIA9RRmXOBjrMZHt2ARUrmeTwnSYEw=; b=Q3AiemI3AlKl9Z6I4P8IhpUAuxvZ4YImpiFnPV73lLObeVsfF98Prov4peqyH+yzNy 7AGJXg+awYvnf/T5H9FgZHiBkQ1sK0172DQ78Bhs7fYQLFqSuU2ktUV6aTPB1afkTaGo pYb9B3enurGAw4OCU79DX2u7Yz+E0jc+F9qwVQqKSFUhrhXNvDRObp/h3D35f5PyEpes +SfsOwyufOiNHH+uD+71NRmZMsf8Gvec9o2T024MUQ0+DgN2vIXwx54j2S8B7+CI/N8U EIElflFRTyizqGiaTdHqeblAnBgiN9vnKupSTf/y4BqKc9/t5U4urrRQNV9euJcDnTRA +S+w== X-Gm-Message-State: AOJu0YzdbXCN6ZHm9a/83xHVNCcPiCX2SHKELAOB1LPGHp3w1NjpDW/x Q3AlV9wAqoxtzXbhagzJzm3lN8/kSt2/Uxm7nlQ= X-Received: by 2002:adf:f9c4:0:b0:317:690e:7b39 with SMTP id w4-20020adff9c4000000b00317690e7b39mr20300901wrr.12.1693234583469; Mon, 28 Aug 2023 07:56:23 -0700 (PDT) Received: from m1x-phil.lan ([176.164.201.64]) by smtp.gmail.com with ESMTPSA id g12-20020a7bc4cc000000b003fed8e12d62sm11070920wmk.27.2023.08.28.07.56.22 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 28 Aug 2023 07:56:23 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 6/8] target/helpers: Remove unnecessary 'exec/cpu_ldst.h' header Date: Mon, 28 Aug 2023 16:55:43 +0200 Message-ID: <20230828145545.81165-7-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230828145545.81165-1-philmd@linaro.org> References: <20230828145545.81165-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=philmd@linaro.org; helo=mail-wr1-x432.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, SUSPICIOUS_RECIPS=2.51 autolearn=no 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 These files don't use the CPU ld/st API, remove the unnecessary "exec/cpu_ldst.h" header. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/cris/op_helper.c | 1 - target/mips/tcg/fpu_helper.c | 1 - target/mips/tcg/sysemu/lcsr_helper.c | 1 - target/s390x/tcg/excp_helper.c | 1 - target/s390x/tcg/fpu_helper.c | 1 - 5 files changed, 5 deletions(-) diff --git a/target/cris/op_helper.c b/target/cris/op_helper.c index 40cb74ce73..98a9aaf504 100644 --- a/target/cris/op_helper.c +++ b/target/cris/op_helper.c @@ -24,7 +24,6 @@ #include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" //#define CRIS_OP_HELPER_DEBUG diff --git a/target/mips/tcg/fpu_helper.c b/target/mips/tcg/fpu_helper.c index 8ce56ed7c8..45d593de48 100644 --- a/target/mips/tcg/fpu_helper.c +++ b/target/mips/tcg/fpu_helper.c @@ -25,7 +25,6 @@ #include "internal.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" #include "fpu/softfloat.h" #include "fpu_helper.h" diff --git a/target/mips/tcg/sysemu/lcsr_helper.c b/target/mips/tcg/sysemu/lcsr_helper.c index 942143d209..8f97d04313 100644 --- a/target/mips/tcg/sysemu/lcsr_helper.c +++ b/target/mips/tcg/sysemu/lcsr_helper.c @@ -13,7 +13,6 @@ #include "qemu/host-utils.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" #define GET_MEMTXATTRS(cas) \ ((MemTxAttrs){.requester_id = env_cpu(cas)->cpu_index}) diff --git a/target/s390x/tcg/excp_helper.c b/target/s390x/tcg/excp_helper.c index b7116d0577..b875bf14e5 100644 --- a/target/s390x/tcg/excp_helper.c +++ b/target/s390x/tcg/excp_helper.c @@ -23,7 +23,6 @@ #include "cpu.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" #include "s390x-internal.h" #include "tcg_s390x.h" #ifndef CONFIG_USER_ONLY diff --git a/target/s390x/tcg/fpu_helper.c b/target/s390x/tcg/fpu_helper.c index c329b31261..d8bd5748fa 100644 --- a/target/s390x/tcg/fpu_helper.c +++ b/target/s390x/tcg/fpu_helper.c @@ -23,7 +23,6 @@ #include "s390x-internal.h" #include "tcg_s390x.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "fpu/softfloat.h" From patchwork Mon Aug 28 14:55:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 717736 Delivered-To: patch@linaro.org Received: by 2002:a5d:688a:0:b0:317:ecd7:513f with SMTP id h10csp1231749wru; Mon, 28 Aug 2023 07:58:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF7E7zx5QzOchLjwM8YGiKp6YKuumIWDA9Ol/xKTdLBRh/OASXaASXsgXvj4tkV3WYLKiWv X-Received: by 2002:ac8:7fd4:0:b0:40f:da00:f075 with SMTP id b20-20020ac87fd4000000b0040fda00f075mr31006289qtk.66.1693234703009; Mon, 28 Aug 2023 07:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693234702; cv=none; d=google.com; s=arc-20160816; b=YlqM9QrJT7iXClLhu8uj4Y3+U9qBJ/CmRayKDqTKzh8XqDZmIy9zX3stE97X6i/8PM cr+RixLXkJ5ihopkulU75MmgR0CScRYtmMgv/TySirrvLLuWbkHw5NhFwc1PteM4oPWr S9+9GwCyAY/8n0WvlpcpLMo4rCKVLR57FeMioTbc8nPccXRsBBF7SS/z+S+0ieBgJicl qJ9VsAoHcC/qUgQyQ33Iz0vP9dcYVw/ma9SfKJHKhVzBcybAscVAOkiMGIEP5CECgH0h LOFXDK5BQUWjcS5iZwdWZqrPcEeQYyl3hI5TI2juepH3QvSLMuMIemXR9S39MKkXzMNH 8zDg== 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=hMOKghXrfuL2nEVSI0FVVFrCQiH4vRrzALBYVbmWdy0=; fh=FxYtB1slzL/yn78+bieLaailXu9MIAo7Kb5vkjusizk=; b=1LXc4KHtypugarp4O8/cu4qtCQF3EhWTDyzB3A8sUtMoAvSJeUTXh/o1TNrR4+7qOZ LTza+r+WgUg0pg/A96eRdWweJaewmtes7POrwpFMrH3iTw4LQL5QykC+iubSJwkJXuBN tGlZeEwM/DP9qIXbrfP+WeaCbgbhpwJUxYF8GH1ds5h6y5yjE5K3aTqUmQw2UiHkNbCO 1Wbih1sJgFnHAgR9N+lThpBn4j6GFFl5ktUVUzI70xAPTnSEHAvLPPeNKe7hAswMfjAm t+4cRg4yGsTXSgXQmxmqKk6XThgUhEge4daXHtIf83eJyCL5RcF27FU1KE/sbYR4QIXA /laA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hLiW3X0t; 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 v13-20020a05622a144d00b004035c106304si4856913qtx.470.2023.08.28.07.58.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2023 07:58:22 -0700 (PDT) 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=hLiW3X0t; 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 1qadfR-0003gj-SK; Mon, 28 Aug 2023 10:56:37 -0400 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 1qadfP-0003f0-LM for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:35 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qadfK-0000ot-Oy for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:35 -0400 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-31768ce2e81so2757069f8f.1 for ; Mon, 28 Aug 2023 07:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693234589; x=1693839389; 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=hMOKghXrfuL2nEVSI0FVVFrCQiH4vRrzALBYVbmWdy0=; b=hLiW3X0tKv0ifK2Iv2M8fQWcZsgferHbAPqoiLS0BbwOb+sxsmHimiuv96YvKWfF7L wurQPiaKyVZcAU+HvrQuGae60pyk6MxR0kOQmy9dbjsi8+VEpUDcr3YGICwd54C/1TPj jwnX1tgaCBTSzztnL8etEpNHLK9P8VhRpl7GEzQTpJgOZU2CtboSh7b/o4pQpA6ij0Pu 7npEvxi9yVdvgeCQ1sIcoUd3yXPMEbmjc3BRnud1KJ5xA85g8JMUx/+ptI2QqZt0fUqh d6WXTbiwgZqbTUkDjIgJP8Rab8vuJ3/A93TrObpCunrpX4PPUYnSJUFoHF8tBJW18/SF R33w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693234589; x=1693839389; 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=hMOKghXrfuL2nEVSI0FVVFrCQiH4vRrzALBYVbmWdy0=; b=NpEK/1fnxXnnRCz0rGiZmXqNor9pr+q0ItSm7KcibC3ijUSs2oEkU2RQfxAnTQsjlf lLU0GBMOw6ldGKE/zh376bs3QTibvrYPDVc+zmm9LdhsJbMHFuynMCrICRt1AGkU3YPZ JBmf2ph0GJWyW+V5lLAZM/uESqCeq18EudX3Z4Hvx2cntDqGHE0OnEFOVAcgjMv7TaGD 1+xeesBVZ/pqXY5uQt9N+/D83N2Um4Ka8RepdswshUN2GLeBxK9Z43sLE+089kFsT6D1 gthnK4EpuxVCSDGO+u7vvJGHUADo956BVQ34onYeZcYIt9m2Hra/qJxCxQAvLjB8YNDr wzFA== X-Gm-Message-State: AOJu0YzlmDV4mDGLb308QrkkeloeP2vEDnKQMsVbPrQ4L4+Lt+UTQPQH /B9ChdaNI3sERelOZ2hW6ho0Hjmp7R2ZOJXAZTQ= X-Received: by 2002:a5d:6103:0:b0:317:53e7:d7c2 with SMTP id v3-20020a5d6103000000b0031753e7d7c2mr18905335wrt.11.1693234589253; Mon, 28 Aug 2023 07:56:29 -0700 (PDT) Received: from m1x-phil.lan ([176.164.201.64]) by smtp.gmail.com with ESMTPSA id y6-20020adfd086000000b003179b3fd837sm10803230wrh.33.2023.08.28.07.56.28 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 28 Aug 2023 07:56:28 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 7/8] target/helper: Remove unnecessary 'qemu/main-loop.h' header Date: Mon, 28 Aug 2023 16:55:44 +0200 Message-ID: <20230828145545.81165-8-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230828145545.81165-1-philmd@linaro.org> References: <20230828145545.81165-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=philmd@linaro.org; helo=mail-wr1-x429.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, SUSPICIOUS_RECIPS=2.51 autolearn=no 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 "qemu/main-loop.h" declares functions related to QEMU's main loop mutex, which these files don't access. Remove the unused "qemu/main-loop.h" header. Signed-off-by: Philippe Mathieu-Daudé --- target/riscv/pmu.h | 2 -- target/arm/ptw.c | 1 - target/loongarch/iocsr_helper.c | 1 - target/loongarch/op_helper.c | 1 - target/mips/tcg/sysemu/lcsr_helper.c | 1 - target/nios2/op_helper.c | 1 - target/ppc/int_helper.c | 1 - target/ppc/machine.c | 1 - target/ppc/mem_helper.c | 1 - target/ppc/mmu_common.c | 1 - target/ppc/mmu_helper.c | 1 - target/ppc/power8-pmu.c | 1 - target/ppc/translate.c | 1 - target/riscv/csr.c | 1 - target/riscv/m128_helper.c | 1 - target/riscv/op_helper.c | 1 - target/s390x/tcg/crypto_helper.c | 1 - target/s390x/tcg/misc_helper.c | 1 - target/xtensa/dbg_helper.c | 1 - target/xtensa/fpu_helper.c | 1 - target/xtensa/mmu_helper.c | 2 -- target/xtensa/op_helper.c | 2 -- target/xtensa/win_helper.c | 1 - 23 files changed, 26 deletions(-) diff --git a/target/riscv/pmu.h b/target/riscv/pmu.h index d2be06a133..2bfb71ba87 100644 --- a/target/riscv/pmu.h +++ b/target/riscv/pmu.h @@ -17,8 +17,6 @@ */ #include "cpu.h" -#include "qemu/main-loop.h" -#include "exec/exec-all.h" bool riscv_pmu_ctr_monitor_instructions(CPURISCVState *env, uint32_t target_ctr); diff --git a/target/arm/ptw.c b/target/arm/ptw.c index bfbab26b9b..a4b0172df3 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -9,7 +9,6 @@ #include "qemu/osdep.h" #include "qemu/log.h" #include "qemu/range.h" -#include "qemu/main-loop.h" #include "exec/exec-all.h" #include "cpu.h" #include "internals.h" diff --git a/target/loongarch/iocsr_helper.c b/target/loongarch/iocsr_helper.c index dda9845d6c..6cd01d5f09 100644 --- a/target/loongarch/iocsr_helper.c +++ b/target/loongarch/iocsr_helper.c @@ -6,7 +6,6 @@ */ #include "qemu/osdep.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h" diff --git a/target/loongarch/op_helper.c b/target/loongarch/op_helper.c index cf84f20aba..fe79c62fa4 100644 --- a/target/loongarch/op_helper.c +++ b/target/loongarch/op_helper.c @@ -7,7 +7,6 @@ #include "qemu/osdep.h" #include "qemu/log.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "qemu/host-utils.h" #include "exec/helper-proto.h" diff --git a/target/mips/tcg/sysemu/lcsr_helper.c b/target/mips/tcg/sysemu/lcsr_helper.c index 8f97d04313..fb57bcbb78 100644 --- a/target/mips/tcg/sysemu/lcsr_helper.c +++ b/target/mips/tcg/sysemu/lcsr_helper.c @@ -7,7 +7,6 @@ */ #include "qemu/osdep.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "internal.h" #include "qemu/host-utils.h" diff --git a/target/nios2/op_helper.c b/target/nios2/op_helper.c index 0aaf33ffc2..5017457c5e 100644 --- a/target/nios2/op_helper.c +++ b/target/nios2/op_helper.c @@ -22,7 +22,6 @@ #include "cpu.h" #include "exec/helper-proto.h" #include "exec/exec-all.h" -#include "qemu/main-loop.h" void helper_raise_exception(CPUNios2State *env, uint32_t index) { diff --git a/target/ppc/int_helper.c b/target/ppc/int_helper.c index 834da80fe3..96cdb3c7e3 100644 --- a/target/ppc/int_helper.c +++ b/target/ppc/int_helper.c @@ -21,7 +21,6 @@ #include "cpu.h" #include "internal.h" #include "qemu/host-utils.h" -#include "qemu/main-loop.h" #include "qemu/log.h" #include "exec/helper-proto.h" #include "crypto/aes.h" diff --git a/target/ppc/machine.c b/target/ppc/machine.c index 134b16c625..1270a1f7fc 100644 --- a/target/ppc/machine.c +++ b/target/ppc/machine.c @@ -7,7 +7,6 @@ #include "mmu-hash64.h" #include "migration/cpu.h" #include "qapi/error.h" -#include "qemu/main-loop.h" #include "kvm_ppc.h" #include "power8-pmu.h" diff --git a/target/ppc/mem_helper.c b/target/ppc/mem_helper.c index 46eae65819..c7535481d6 100644 --- a/target/ppc/mem_helper.c +++ b/target/ppc/mem_helper.c @@ -21,7 +21,6 @@ #include "cpu.h" #include "exec/exec-all.h" #include "qemu/host-utils.h" -#include "qemu/main-loop.h" #include "exec/helper-proto.h" #include "helper_regs.h" #include "exec/cpu_ldst.h" diff --git a/target/ppc/mmu_common.c b/target/ppc/mmu_common.c index 8c000e250d..6ca5d12207 100644 --- a/target/ppc/mmu_common.c +++ b/target/ppc/mmu_common.c @@ -28,7 +28,6 @@ #include "exec/log.h" #include "helper_regs.h" #include "qemu/error-report.h" -#include "qemu/main-loop.h" #include "qemu/qemu-print.h" #include "internal.h" #include "mmu-book3s-v3.h" diff --git a/target/ppc/mmu_helper.c b/target/ppc/mmu_helper.c index d3ea7588f9..f87d35379a 100644 --- a/target/ppc/mmu_helper.c +++ b/target/ppc/mmu_helper.c @@ -28,7 +28,6 @@ #include "exec/log.h" #include "helper_regs.h" #include "qemu/error-report.h" -#include "qemu/main-loop.h" #include "qemu/qemu-print.h" #include "internal.h" #include "mmu-book3s-v3.h" diff --git a/target/ppc/power8-pmu.c b/target/ppc/power8-pmu.c index 2537cded83..cbc5889d91 100644 --- a/target/ppc/power8-pmu.c +++ b/target/ppc/power8-pmu.c @@ -17,7 +17,6 @@ #include "exec/helper-proto.h" #include "qemu/error-report.h" #include "qemu/timer.h" -#include "qemu/main-loop.h" #include "hw/ppc/ppc.h" #include "power8-pmu.h" diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 49b6a757b7..7111b34030 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -26,7 +26,6 @@ #include "tcg/tcg-op.h" #include "tcg/tcg-op-gvec.h" #include "qemu/host-utils.h" -#include "qemu/main-loop.h" #include "exec/helper-proto.h" #include "exec/helper-gen.h" diff --git a/target/riscv/csr.c b/target/riscv/csr.c index ea7585329e..de31818daa 100644 --- a/target/riscv/csr.c +++ b/target/riscv/csr.c @@ -23,7 +23,6 @@ #include "cpu.h" #include "pmu.h" #include "time_helper.h" -#include "qemu/main-loop.h" #include "exec/exec-all.h" #include "exec/tb-flush.h" #include "sysemu/cpu-timers.h" diff --git a/target/riscv/m128_helper.c b/target/riscv/m128_helper.c index e6a4f6120a..ec14aaa901 100644 --- a/target/riscv/m128_helper.c +++ b/target/riscv/m128_helper.c @@ -19,7 +19,6 @@ #include "qemu/osdep.h" #include "cpu.h" -#include "qemu/main-loop.h" #include "exec/exec-all.h" #include "exec/helper-proto.h" diff --git a/target/riscv/op_helper.c b/target/riscv/op_helper.c index 7e2f1908ee..5355225d56 100644 --- a/target/riscv/op_helper.c +++ b/target/riscv/op_helper.c @@ -21,7 +21,6 @@ #include "qemu/osdep.h" #include "cpu.h" #include "internals.h" -#include "qemu/main-loop.h" #include "exec/exec-all.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h" diff --git a/target/s390x/tcg/crypto_helper.c b/target/s390x/tcg/crypto_helper.c index 762b277884..93aabd236f 100644 --- a/target/s390x/tcg/crypto_helper.c +++ b/target/s390x/tcg/crypto_helper.c @@ -13,7 +13,6 @@ */ #include "qemu/osdep.h" -#include "qemu/main-loop.h" #include "qemu/guest-random.h" #include "s390x-internal.h" #include "tcg_s390x.h" diff --git a/target/s390x/tcg/misc_helper.c b/target/s390x/tcg/misc_helper.c index 576157b1f3..e85658ce22 100644 --- a/target/s390x/tcg/misc_helper.c +++ b/target/s390x/tcg/misc_helper.c @@ -20,7 +20,6 @@ #include "qemu/osdep.h" #include "qemu/cutils.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "s390x-internal.h" #include "qemu/host-utils.h" diff --git a/target/xtensa/dbg_helper.c b/target/xtensa/dbg_helper.c index ce2a820c60..3e0c9e8e8b 100644 --- a/target/xtensa/dbg_helper.c +++ b/target/xtensa/dbg_helper.c @@ -27,7 +27,6 @@ #include "qemu/osdep.h" #include "qemu/log.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h" diff --git a/target/xtensa/fpu_helper.c b/target/xtensa/fpu_helper.c index d2a10cc797..381e83ded8 100644 --- a/target/xtensa/fpu_helper.c +++ b/target/xtensa/fpu_helper.c @@ -27,7 +27,6 @@ #include "qemu/osdep.h" #include "qemu/log.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h" diff --git a/target/xtensa/mmu_helper.c b/target/xtensa/mmu_helper.c index fa66e8e867..12552a3347 100644 --- a/target/xtensa/mmu_helper.c +++ b/target/xtensa/mmu_helper.c @@ -27,14 +27,12 @@ #include "qemu/osdep.h" #include "qemu/log.h" -#include "qemu/main-loop.h" #include "qemu/qemu-print.h" #include "qemu/units.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" #define XTENSA_MPU_SEGMENT_MASK 0x0000001f #define XTENSA_MPU_ACC_RIGHTS_MASK 0x00000f00 diff --git a/target/xtensa/op_helper.c b/target/xtensa/op_helper.c index 1af7becc54..03e2c1889a 100644 --- a/target/xtensa/op_helper.c +++ b/target/xtensa/op_helper.c @@ -26,12 +26,10 @@ */ #include "qemu/osdep.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" -#include "exec/cpu_ldst.h" #include "qemu/timer.h" #ifndef CONFIG_USER_ONLY diff --git a/target/xtensa/win_helper.c b/target/xtensa/win_helper.c index 5a1555360a..ec9ff44db0 100644 --- a/target/xtensa/win_helper.c +++ b/target/xtensa/win_helper.c @@ -27,7 +27,6 @@ #include "qemu/osdep.h" #include "qemu/log.h" -#include "qemu/main-loop.h" #include "cpu.h" #include "exec/helper-proto.h" #include "qemu/host-utils.h" From patchwork Mon Aug 28 14:55:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 717734 Delivered-To: patch@linaro.org Received: by 2002:a5d:688a:0:b0:317:ecd7:513f with SMTP id h10csp1231634wru; Mon, 28 Aug 2023 07:58:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrLoaM5BMR6RItrG5ARqh4idqBKhFCZAXYcxjlZl1BNoGITD1hHDZVb7ige+y2a3U/gV3Y X-Received: by 2002:a05:622a:44f:b0:403:fee4:2e7f with SMTP id o15-20020a05622a044f00b00403fee42e7fmr33378651qtx.36.1693234688653; Mon, 28 Aug 2023 07:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693234688; cv=none; d=google.com; s=arc-20160816; b=wCvCzfepLqY6YfXzMwysb1D1P7O03yIUpqdeynQnaK2soKAWJkG2JgSj0AU/5p3E5i +YJLm3qiSiiehdZgM6kIIHsEtVt7AQgYkQu/BLzSIYT8H4z99fczMv0BravTaYdbHwLU vi3Li5V0wDew/rE3bzgL5AQYxIKdXeQYPnwMaSKlOHICAQsI3jRHDkO+LvSNgK/j317S XE10lm3q2R5ggPaXT+s7YiW9F1oJPGZ+KPQCDHRPiDo1DfVwlJLtydLB1y5CwwiTeg5g Hi0l7MgNEFG1Yd92RbYwPnUAo/9ZlpJVj34Ub1eMDcev/hizMkCJPhlTAztH/dWQWBaJ QniQ== 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=KkhqJAUVJ209lj57L0iB4q2VyrV5eDh4CMuLWSjFz6s=; fh=FxYtB1slzL/yn78+bieLaailXu9MIAo7Kb5vkjusizk=; b=u/1prYMnfLTMCCIgKucRAVTOUsOCDf43dbZ1xE3HDAEXVBv6NfzPi+lpIV1i+fB3yr 0o2K6O+c6LCHdMsFKkIN6BlBHVCzOmkzkIxT6GfTK0YA1uz6Ny2DCnY/M8KVIoofYnua +PKlCuRviuEnOQ+ctkEVl5BQ423YE9OjJRTbPF4IykUylQ4XfNAY4+GH4dsv07j0n92+ Qgxq0z6OZamUu6xb9B8nan3Q9GLSLS2bx7cfWBcWbEmMf6XUvAgx0CoLNZsHFZBtqJ79 H/3v98hUBQG0pdHCWJXYN600vQlgiTJmGHWMoW45baCVnslye/Cu9htTw8VDOTumKvdr +Uxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OgIUQ+6l; 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 q6-20020a05620a0d8600b0076ce7431548si2842453qkl.618.2023.08.28.07.58.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2023 07:58:08 -0700 (PDT) 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=OgIUQ+6l; 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 1qadfV-0003sa-A4; Mon, 28 Aug 2023 10:56:41 -0400 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 1qadfU-0003pr-6N for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:40 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qadfR-0000r8-2P for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:39 -0400 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-31c479ede21so2784394f8f.2 for ; Mon, 28 Aug 2023 07:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693234595; x=1693839395; 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=KkhqJAUVJ209lj57L0iB4q2VyrV5eDh4CMuLWSjFz6s=; b=OgIUQ+6lDyKbf0idKTkCE8+Q1FAhG7mNU12ib6hlwXj2UY30esy1birIswk8Qyt/B9 gsOtsZ7UwzjbQGAA2jpuPC7oIzNQ3fsqyix/H6MNtxVS8EM7hD4kV+5Ylz5fAUbGKSzE YEf6WgnnZIJs4dmqAzvHvh6/APXQqEMlUZPP6VLNSiqsxy2c4GxEQm4q1eyvGWv3ZgQD WTznzKwsWlbUlAHWGXngqvvJtvoPZEZUOfpLQFIAVObhzyvisiuMfSgE7yO+vL+YCSey eo8s0M33bXJVsz52Ql4uH6fD9F7am1IkHhYL+Y7QMaTDWTOw9VACouI8f9rcJG3cAbPl w4pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693234595; x=1693839395; 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=KkhqJAUVJ209lj57L0iB4q2VyrV5eDh4CMuLWSjFz6s=; b=JK2jS4ZgtY7ye94+/E3fmPd1GyQNUyyB3OFZOh/0SD78OBEA8dc0WJ4E+6vsu39ltB oCqtbJdhIBAT8G0O6u/Bio5k6wySWcvp90lLUxHUOnbFQkzIXV2uYMwB7HCWkU8UGg1a LPHHWu+HD8BBMRr3a/WGwivUkZUYTKRnSDyEiaJpP7RT84EBsvYSbYkMCTnZVsEGwPDr Gv0Jb1ks0ehz4YYKXTFCLG6dneyUr8i4e1hMZngr20VkkB9vVvqhJ/dpk8Cq2hvkqlQI rxa384j8PMevSDUj8fZOELqx0Ss68svGDdKgl9DDyAmjIuLNSqEhuRfofOizQzRPBmZP +wxw== X-Gm-Message-State: AOJu0YxY6cV8AlwpeCSvK0xZeM6brB3RqbdjslNLfw4frHAbgEoEyj55 cI01x0sizAdroV3/oWCda1nEjOZ5v16wgAAaAyI= X-Received: by 2002:a5d:65c5:0:b0:314:1ebc:6e19 with SMTP id e5-20020a5d65c5000000b003141ebc6e19mr18853617wrw.64.1693234595538; Mon, 28 Aug 2023 07:56:35 -0700 (PDT) Received: from m1x-phil.lan ([176.164.201.64]) by smtp.gmail.com with ESMTPSA id q9-20020adfea09000000b0031c5ee51638sm10782703wrm.109.2023.08.28.07.56.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 28 Aug 2023 07:56:35 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 8/8] target/mips: Remove unused headers in lcsr_helper.c Date: Mon, 28 Aug 2023 16:55:45 +0200 Message-ID: <20230828145545.81165-9-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230828145545.81165-1-philmd@linaro.org> References: <20230828145545.81165-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=philmd@linaro.org; helo=mail-wr1-x42a.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, SUSPICIOUS_RECIPS=2.51 autolearn=no 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 This files only access the address_space_ld/st API, declared in "exec/cpu-all.h", already included by "cpu.h". Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/mips/tcg/sysemu/lcsr_helper.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/target/mips/tcg/sysemu/lcsr_helper.c b/target/mips/tcg/sysemu/lcsr_helper.c index fb57bcbb78..25e03572fe 100644 --- a/target/mips/tcg/sysemu/lcsr_helper.c +++ b/target/mips/tcg/sysemu/lcsr_helper.c @@ -8,10 +8,7 @@ #include "qemu/osdep.h" #include "cpu.h" -#include "internal.h" -#include "qemu/host-utils.h" #include "exec/helper-proto.h" -#include "exec/exec-all.h" #define GET_MEMTXATTRS(cas) \ ((MemTxAttrs){.requester_id = env_cpu(cas)->cpu_index})