From patchwork Thu Apr 22 06:41:27 2021 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: 1468994 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=PVi3GfVV; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FQntG4Mz7z9sWD for ; Thu, 22 Apr 2021 16:43:02 +1000 (AEST) Received: from localhost ([::1]:32786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZT3E-0005qb-Iy for incoming@patchwork.ozlabs.org; Thu, 22 Apr 2021 02:43:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZT1v-0005pq-Pv for qemu-devel@nongnu.org; Thu, 22 Apr 2021 02:41:43 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:41671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZT1t-0008Mn-MA for qemu-devel@nongnu.org; Thu, 22 Apr 2021 02:41:38 -0400 Received: by mail-wm1-x32b.google.com with SMTP id o21-20020a1c4d150000b029012e52898006so2493099wmh.0 for ; Wed, 21 Apr 2021 23:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=d4HDeJyPqjZEzODBtmbe1jNMuACFjo+tIKMEPK30PBA=; b=PVi3GfVVHTfaB4E9nDcyH/TnuRhH+z6YHa3ZHCvkyU429HNhqbLbnE/MM/JKoXsh97 K38bZHcA4kHsrN0+EJAqWs0CvSYzyTlsRfoxBXzMqoACubQ9pFHLk8/174ssvPubHx7u 10wj3titJbwXVFuHL05kn/Qa1D8S46JbL49vhQ7xto24zH6vbJfCHZhYJ0SX8arrYbyX upk36553UOvI1JvuuK1su32ABnxCp3p3cb6VDPADQCf3nx0DL4jUuVnCNYhZtFzJCmV6 EQ0Pb4WvdJR3X8r8M0cl0Uc4X0WerlLRKseprjdNnRNC3HTz9xWap0WzDABWF6IgC61o n8qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=d4HDeJyPqjZEzODBtmbe1jNMuACFjo+tIKMEPK30PBA=; b=cYx/uXnrMCS4ZKRTIR0MeHXP9tC4Me2gciSA1ea0GcdToLEzco2Cl6xd4O6oeI4yRf mv7EpieMlGMehaeVKZg+0moDQ/Wl7sy6fkvraltHB+ob5Bsq1kaLXUx+pKFxPaOo+/fB ysv86rxI5Chlxp4AEBeNz0F5gBh6Yt8XfZJdzTXz45s4DOCh1rg1TsBmDacha8zg8GOo hMZf/NddJ420cmMQe/UcAegstb7mL8tJYD12aEYR2Jkz/dttx94oEaxAuo0ufxBjj/c3 HthdhA84Ybh2V/rSL37csZG63n5ipZoUy+tYj7I4ikWxy7QsILY6YJ47fP+7qjZQBSky U7fA== X-Gm-Message-State: AOAM532xkCM+kiotw7xPQeuNklPsgxp+t8oLpLyQy2tHbQyH/ywH4H0r ZcAedjHuw97aLZvu0i3qupX8jWNT2GHRtA== X-Google-Smtp-Source: ABdhPJy2ChX5BcAMdlgK4braELJa78ZirW97DUYfa6cU4zimSAqOMRSqdb+e1l/h1Xxed8GtmlhbuQ== X-Received: by 2002:a1c:f701:: with SMTP id v1mr13823404wmh.69.1619073695472; Wed, 21 Apr 2021 23:41:35 -0700 (PDT) Received: from localhost.localdomain (39.red-81-40-121.staticip.rima-tde.net. [81.40.121.39]) by smtp.gmail.com with ESMTPSA id a7sm1968978wrn.50.2021.04.21.23.41.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 23:41:35 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 1/2] MAINTAINERS: Add include/exec/gen-icount.h to 'Main Loop' section Date: Thu, 22 Apr 2021 08:41:27 +0200 Message-Id: <20210422064128.2318616-2-f4bug@amsat.org> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210422064128.2318616-1-f4bug@amsat.org> References: <20210422064128.2318616-1-f4bug@amsat.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= , Pavel Dovgalyuk , "Emilio G . Cota" , Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" As the 'Main Loop' section covers softmmu/icount.c, add "exec/gen-icount.h" there too. Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 36055f14c59..b91419ef08d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2445,6 +2445,7 @@ F: ui/cocoa.m Main loop M: Paolo Bonzini S: Maintained +F: include/exec/gen-icount.h F: include/qemu/main-loop.h F: include/sysemu/runstate.h F: include/sysemu/runstate-action.h From patchwork Thu Apr 22 06:41:28 2021 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: 1468996 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Zz+KIAGc; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FQnvq3X4Nz9sWD for ; Thu, 22 Apr 2021 16:44:23 +1000 (AEST) Received: from localhost ([::1]:37736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZT4X-0007sE-FS for incoming@patchwork.ozlabs.org; Thu, 22 Apr 2021 02:44:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZT28-0005qM-Fi for qemu-devel@nongnu.org; Thu, 22 Apr 2021 02:41:52 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:42656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZT1z-0008PF-FF for qemu-devel@nongnu.org; Thu, 22 Apr 2021 02:41:48 -0400 Received: by mail-wr1-x433.google.com with SMTP id p6so36902837wrn.9 for ; Wed, 21 Apr 2021 23:41:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qDhZv6hOAh1AXh93jaOloafMBY2uwHZW7S6gBqsTHSE=; b=Zz+KIAGcCmHTMnNr1qzYeyBhfFuvy9XVtyjRMGewwswoKS67Nc4WGi8MUp5ZHMvOfN H5MkmqRwDkNU4cU20ZDT0N5vqjs12jHZDutsNwiCmaQdMxz8DBwXrVw/G2ht1sLODGor dZMUsLH0tVNIFclfYzoPi6U66YE5R8oKqp4NzjbiSRWqFFqpC64OppBclrkxDbNrNOp/ NUOShetUckYPwYqYjwZtfji9vrCUlCQClWqjhNQPVS/Dq8bKhV0LzK2mZPjslisUq5f4 UWeWxpo4MZeERWhM+aUqtPd0s3VbZ4UWSNsCnBCv+MFVpseKuCS2iJaGMurXWYquxsIL zJNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=qDhZv6hOAh1AXh93jaOloafMBY2uwHZW7S6gBqsTHSE=; b=ZhzqoJ7e4IggDlmcsdaw0VPURFALW5PwBInBxNKxBqOidZ8U03U76867ZaBhd6Bovn zDaRMckXAOlnDAkrVovAMsrw/yxaJ8YYradj9/NX55T34QRKat/4qovxluuLOTIw4GJG e/ArrXOQuZzNSz6DHC7YrylU6CNI53aOm00oUB03+wRS00bEAqEq+HaDchSVHjF/hmo4 J6Ev42TVu0/LiuV6dAx3frpEQIC563FdShkcu5t3nRUgtI9SPjmvhHwqJ+oziqxQ14id +Toz3DN4S3z3lc8D2l9SzyW7qzT7aeImPTHv77O7d9GJI2Q0FFx0YGovsvknHlB41Y8D 2Eyw== X-Gm-Message-State: AOAM530wYIcJQ6/ZCVOa8tWbpFzoWGGp/z7WPrV4HTUFTWJU9K9iqw8O c6H1FrhsEzfhwCE77u6BZP1/bCIwIPqXSQ== X-Google-Smtp-Source: ABdhPJy23p9yzSO41zynG+tWKwBWb7Re1HJ8cs9b0vGymk56OqwDdkK7wt/xMpv1ym+HOerQB2K0sw== X-Received: by 2002:adf:fbcc:: with SMTP id d12mr2030918wrs.151.1619073700352; Wed, 21 Apr 2021 23:41:40 -0700 (PDT) Received: from localhost.localdomain (39.red-81-40-121.staticip.rima-tde.net. [81.40.121.39]) by smtp.gmail.com with ESMTPSA id o12sm4761454wmq.21.2021.04.21.23.41.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 23:41:39 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 2/2] exec/gen-icount.h: Add missing "exec/exec-all.h" include Date: Thu, 22 Apr 2021 08:41:28 +0200 Message-Id: <20210422064128.2318616-3-f4bug@amsat.org> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210422064128.2318616-1-f4bug@amsat.org> References: <20210422064128.2318616-1-f4bug@amsat.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x433.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= , Pavel Dovgalyuk , "Emilio G . Cota" , Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" When including "exec/gen-icount.h" we get: include/exec/gen-icount.h: In function ‘gen_tb_start’: include/exec/gen-icount.h:40:9: error: implicit declaration of function ‘tb_cflags’ [-Werror=implicit-function-declaration] 40 | if (tb_cflags(tb) & CF_USE_ICOUNT) { | ^~~~~~~~~ include/exec/gen-icount.h:40:9: error: nested extern declaration of ‘tb_cflags’ [-Werror=nested-externs] include/exec/gen-icount.h:40:25: error: ‘CF_USE_ICOUNT’ undeclared (first use in this function); did you mean ‘CPU_COUNT’? 40 | if (tb_cflags(tb) & CF_USE_ICOUNT) { | ^~~~~~~~~~~~~ | CPU_COUNT Since tb_cflags() is declared in "exec/exec-all.h", include this header in "exec/gen-icount.h". Signed-off-by: Philippe Mathieu-Daudé --- include/exec/gen-icount.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h index 298e01eef49..467529d84c5 100644 --- a/include/exec/gen-icount.h +++ b/include/exec/gen-icount.h @@ -1,6 +1,7 @@ #ifndef GEN_ICOUNT_H #define GEN_ICOUNT_H +#include "exec/exec-all.h" #include "qemu/timer.h" /* Helpers for instruction counting code generation. */