From patchwork Mon Mar 6 00:38:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 659135 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1572196wrb; Sun, 5 Mar 2023 16:40:48 -0800 (PST) X-Google-Smtp-Source: AK7set9SCHHRU5fIinAkA2fTKc7+Acr58YdlcOFprVXQCrCavY9+ZOTjuFnP6BcGc/YH4i+yUN8X X-Received: by 2002:a05:622a:18c:b0:3bf:a760:cb5 with SMTP id s12-20020a05622a018c00b003bfa7600cb5mr16394551qtw.4.1678063248309; Sun, 05 Mar 2023 16:40:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678063248; cv=none; d=google.com; s=arc-20160816; b=o1POSnKNNKkmKYFzfw3U+N5siyQLuf+3gknAfxQp34mTOrbqG1m5ynmAnDpEs4nWxe A00r4dicsfxfxKsuAbZWGlcJwAipv9gj2F/Yzw5h7f00JrgCRmb+3vcvp+QpJ5LPGtgk hQk02zn7wfP6ikvucY/vyUjhHtuLVubIKQ/+i8SGd2QBCs/o8bRWJj3l5q0fp5DiRyEG 4jh0UZHEUnWz3hudoaf3cKNCbpPZ/12l962Z9hUGeDljEoztozYL/zh4AfbThEgMeabn exu4w8ZCRyX/artE3LnVwCr0k8qq8ZIEU2YpYQYgLiJ2GT8Wj2OUN8xYDPaWaglzrcRH nRCA== 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=tw4O2DvbAu9SMXsAPu4aoqukwc2y/CW2+dH8E22nZx8=; b=QLPpNXraUNchxY86CbZW1qMwsS4rTWFJw9JzrzF9Q1RFcUiepuIT1u1mBxkbcGrF7d ppt6fBMl1N1f4nDpcT0urJ5zXpAuNFk2rzgTAbGiA/wETJHK+XEypfmRX1zjyqptjOqA WY+eWSj1Y5KlGLAokJU/koojeKIZJoVBM1oHX+H0b3lYDP6W4WRiTuJ+6LwR+DgcdnLc OV8TQke0CoqHdQSljTyXt+Ll9SGfQCgQegk+ak9bCk8bActsylH2HYcTfb6NH95LJ43j 0AchQBusW48nQYx9moEIXEmeBYEGArUs0/ZjB/cEusL4/kXY3njvwp2br8qsyPYWOCI8 3y6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=grVS1GxD; 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 t10-20020a05622a01ca00b003b68ec90994si6892603qtw.520.2023.03.05.16.40.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Mar 2023 16:40:48 -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=grVS1GxD; 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 1pYytW-0004Md-4R; Sun, 05 Mar 2023 19:40: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 1pYytU-0004Lp-0H for qemu-devel@nongnu.org; Sun, 05 Mar 2023 19:40:00 -0500 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYytS-0006Md-8z for qemu-devel@nongnu.org; Sun, 05 Mar 2023 19:39:59 -0500 Received: by mail-pj1-x1032.google.com with SMTP id qa18-20020a17090b4fd200b0023750b675f5so11558169pjb.3 for ; Sun, 05 Mar 2023 16:39:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678063197; 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=tw4O2DvbAu9SMXsAPu4aoqukwc2y/CW2+dH8E22nZx8=; b=grVS1GxD+zvHdfzO9yuRx6WNiErWhJLH9D/m9zRdpzja/YQ7EPOkFiBvBvr8nEsRK0 Rtzfd7EyL5To5F0WoSfV1uOEQSBGL19/DPQJLU0M0bgq/3dfz7IxDZKLFUNVMyU8bXBd IjtIE49ZsMKHiRiE3Jm8yeT8eAzgk5lskN8NTOsd1ETsHio7f5nuAsIuM1YJWYBxgdlt nUL9bpG2pw/jWoEXfEbEm1silyfgwcbsXq37mhjnhGBCD93fwnCOIcEKVf7jap33ux9J e1s6pPbR1ZgcPiDdfOIll8CrQ2Jp02yIwx5I3P7cMb5DMcfN4d5mhKRknOR+zsY5jBtK S5pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678063197; 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=tw4O2DvbAu9SMXsAPu4aoqukwc2y/CW2+dH8E22nZx8=; b=WRHxNkbUFRY2bGy23Ek+ETW08a3gIxMGZvpofbsSgZJtFhcQeMHX3gem6HOhTDis6v X/xXDLK4Fr2WneMQPUMFpQf/Ma4iiOcqhXcQkeOjKy0pT1rzQf9d7X0UqCh58vl7UIEw hwwPS1QeRDRB/7e/i1XCKQh+1P1awUH8nAe1kjqSO/4Rx+8d/YslA4zD2jFuJpth6mPM lbj5tB7Qh0FeOn/J/UQXNzeoemDLw/M0YP+uv5Oj1k4U3/WI1etIqHbfhnnTpIOrCHAm 8ptGw9bqLegMqsORXexvrEwJV66ezMqtZ7VkfKwGhml5zOgB4Cy9qHSusaERhAoB1rYP LdYw== X-Gm-Message-State: AO0yUKWHpbM+o0KuKV4QATxXM7NV/qY+n0QAYG3EgexUti/xxfR1Ccw1 /rzWQH0dWTMe5Qohxk0ylwYwFcyLmy5A3ZPbUZrDyA== X-Received: by 2002:a17:90a:1a5c:b0:237:9896:3989 with SMTP id 28-20020a17090a1a5c00b0023798963989mr9813663pjl.34.1678063196941; Sun, 05 Mar 2023 16:39:56 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:87cc:49bb:2900:c08b]) by smtp.gmail.com with ESMTPSA id r13-20020a17090b050d00b002372106a5c2sm6567901pjz.37.2023.03.05.16.39.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Mar 2023 16:39:56 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, "Richard W.M. Jones" , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 01/84] tcg: Include "qemu/timer.h" for profile_getclock Date: Sun, 5 Mar 2023 16:38:31 -0800 Message-Id: <20230306003954.1866998-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230306003954.1866998-1-richard.henderson@linaro.org> References: <20230306003954.1866998-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1032.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 From: "Richard W.M. Jones" When CONFIG_PROFILER is set there are various undefined references to profile_getclock. Include the header which defines this function. For example: ../tcg/tcg.c: In function ‘tcg_gen_code’: ../tcg/tcg.c:4905:51: warning: implicit declaration of function ‘profile_getclock’ [-Wimplicit-function-declaration] 4905 | qatomic_set(&prof->opt_time, prof->opt_time - profile_getclock()); | ^~~~~~~~~~~~~~~~ Signed-off-by: Richard W.M. Jones Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230303084948.3351546-1-rjones@redhat.com> Signed-off-by: Richard Henderson --- accel/tcg/tcg-accel-ops.c | 1 + accel/tcg/translate-all.c | 1 + softmmu/runstate.c | 1 + tcg/tcg.c | 1 + 4 files changed, 4 insertions(+) diff --git a/accel/tcg/tcg-accel-ops.c b/accel/tcg/tcg-accel-ops.c index aeb1cbaf65..af35e0d092 100644 --- a/accel/tcg/tcg-accel-ops.c +++ b/accel/tcg/tcg-accel-ops.c @@ -31,6 +31,7 @@ #include "sysemu/cpu-timers.h" #include "qemu/main-loop.h" #include "qemu/guest-random.h" +#include "qemu/timer.h" #include "exec/exec-all.h" #include "exec/hwaddr.h" #include "exec/gdbstub.h" diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index 4b5abc0f44..a5bea8f99c 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -51,6 +51,7 @@ #include "qemu/qemu-print.h" #include "qemu/main-loop.h" #include "qemu/cacheinfo.h" +#include "qemu/timer.h" #include "exec/log.h" #include "sysemu/cpus.h" #include "sysemu/cpu-timers.h" diff --git a/softmmu/runstate.c b/softmmu/runstate.c index f9ad88e6a7..9b3611d56d 100644 --- a/softmmu/runstate.c +++ b/softmmu/runstate.c @@ -46,6 +46,7 @@ #include "qemu/module.h" #include "qemu/plugin.h" #include "qemu/sockets.h" +#include "qemu/timer.h" #include "qemu/thread.h" #include "qom/object.h" #include "qom/object_interfaces.h" diff --git a/tcg/tcg.c b/tcg/tcg.c index 5cccc06ae3..6b830ade4c 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -36,6 +36,7 @@ #include "qemu/qemu-print.h" #include "qemu/cacheflush.h" #include "qemu/cacheinfo.h" +#include "qemu/timer.h" /* Note: the long term plan is to reduce the dependencies on the QEMU CPU definitions. Currently they are used for qemu_ld/st