From patchwork Mon Aug 28 22:13:04 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: 717753 Delivered-To: patch@linaro.org Received: by 2002:a5d:688a:0:b0:317:ecd7:513f with SMTP id h10csp1420856wru; Mon, 28 Aug 2023 15:14:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXyLzswYYtsHdHi0lfQyqMhaGKt7tXockCNhs+tlmiOuUeFivHZ2N/d8WefisTkSiN6JvD X-Received: by 2002:a05:620a:240c:b0:767:2736:ecd4 with SMTP id d12-20020a05620a240c00b007672736ecd4mr34285459qkn.47.1693260892455; Mon, 28 Aug 2023 15:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693260892; cv=none; d=google.com; s=arc-20160816; b=hhYxA6Xcs5o6EmS84Xrh5niylJsnwj5fH7l9d+bOdQsHlSHE/UYmwrw+5htPelDCD3 QG+fjEK9KZTi+Hiu8B57GYFGWgHtI9H5fJw3s3jB0MddViqCe9bzvHYWtSw5Hp7sUaQL pXT2gErlbaqhXT77lA79Q11aG/MTg+MoqgXPL7ltO+kvYYnhVyvXiNY2ijKO6dbNalON iCL2zcoPQrjESYvqdTPId2zkxYKETxEtUZDN7Wxu6Jg0QsLMXktMw7am7sqRRN9fS8Y6 N2Z3zXfnsuJVJ/a+0YNFr8x7z9OFNTYcsCjnTA/y0DiqRvMfWsSY3sf1BZWcKdO8u3CR 35cw== 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=CBJPxJEjNCibwfpZfKrPGtkERKtYgP+G6TPhM7p5XaM=; b=VTLzwsBdd+pGvD0KvryAncqN+1t1HanY/7/L+qr9KC0/tQz3S50ToZQ1VVQk5cvoTY ywDtSF8YWMXh3oJqinNcffPl/kgkEZiWFEcemHtRzauYgyRkT2hPfZ9KDrLDh6whobCQ +ZeY06ouKKOGepyziJ0jMjKOU6Zd/pVLy4u9R/Ftu/wBw37LUDApUUQ3kcvS8qQcjGxd WIeIci8zra873iueAk5E25cvkqUF803cTHtgKWzSrQFjCGz7suIEYl8//CmL6O4vEro6 GkYtwOHkKl0nzPMAHg1yLRH17IPsZ9x1EX64KMqfNAlicVsRPRAChGq8bLsI0gJEGU/i v+JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P7BR8xaD; 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 k22-20020a05620a415600b007672e58861bsi5582849qko.539.2023.08.28.15.14.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2023 15:14: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=P7BR8xaD; 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 1qakUE-0005ri-7d; Mon, 28 Aug 2023 18:13: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 1qakUD-0005rG-AF for qemu-devel@nongnu.org; Mon, 28 Aug 2023 18:13:29 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qakU9-000483-OX for qemu-devel@nongnu.org; Mon, 28 Aug 2023 18:13:29 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-31c6cd238e0so2981534f8f.0 for ; Mon, 28 Aug 2023 15:13:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693260804; x=1693865604; 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=P7BR8xaDjcJGshJySCVQVljJUEjiUazbpSm6e1BrSRK+dCfM7YZ4UL3KGATyHUIm1v 0n6TjpdingX0FubBMXjURoyLyOfDVd2nooMZL2IRehWAnC46vCUeSBBlSRDJ8q0lv1iy vqYmYypvtpHR9mv8E0O9krIbh2FpkurwLZd9aUJJ8zeJbIpVvVwpHFDlnWptsZE2Sh2R dBN9pPlV+AW0EPgyUHiX12xfO1wwQam6kV0iXkZu1cRAl6xabGMr4M+KUfuBmj5LKWM7 Auo23CNqfNZ74J7crYM8/Ey2XTjImyGGSVHQER1R8NY068/ItAuxIA8cBGehJEncdVg6 Zx/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693260804; x=1693865604; 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=gNT0VlH+dKi56PYNOVW4cCOQSJ7K/EjEylLG+p4FeKWZavUV3SKNkIUzNm/Dg904ZD 2PHlinPVXEjK3vIAX8HBmFtK/g/nrKrf3IF4H0p13o50X4VOVrFnc/f5HrgXGYQSLd0d WRqlkoxhtLj0KSyi7hF/RLah5vwpjAhZnlw+zjwtZDTHAFFZGVGNA52IgnT44iBw665W aVvXNn+6PsWZiTMzuYxZEbd3EVa16H13PhRtiOG7yaoM1YdcdoRvGGWVznePhSIzgC8h VVXFfNUOT2vlvcjzc+XH1MtJMOFLiTAcFfi7jaaL9lDrUzHkhIfJI2COoQsqOOe1UNR+ V9Bw== X-Gm-Message-State: AOJu0YwrT2Q+7ifoaUU3xlqdiMSYG1tQPbqMX8GmC/3quMM07TQv/W60 NNKwQBAHg9uZsnDPo9SLU/fJ/66lxj7be2/Tu+I= X-Received: by 2002:a5d:530b:0:b0:317:ce01:fe99 with SMTP id e11-20020a5d530b000000b00317ce01fe99mr605633wrv.9.1693260803920; Mon, 28 Aug 2023 15:13:23 -0700 (PDT) Received: from m1x-phil.lan ([176.164.201.64]) by smtp.gmail.com with ESMTPSA id u5-20020adfed45000000b0031984b370f2sm11756175wro.47.2023.08.28.15.13.22 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 28 Aug 2023 15:13:23 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 01/11] target/ppc/pmu: Include missing 'qemu/timer.h' header Date: Tue, 29 Aug 2023 00:13:04 +0200 Message-ID: <20230828221314.18435-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230828221314.18435-1-philmd@linaro.org> References: <20230828221314.18435-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=philmd@linaro.org; helo=mail-wr1-x431.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é Reviewed-by: Richard Henderson --- 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"