From patchwork Sun May 16 14:11:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 12260407 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8B6EC433ED for ; Sun, 16 May 2021 14:13:52 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4423061155 for ; Sun, 16 May 2021 14:13:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4423061155 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:54428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liHWh-0007p0-At for qemu-devel@archiver.kernel.org; Sun, 16 May 2021 10:13:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liHUj-00060O-St for qemu-devel@nongnu.org; Sun, 16 May 2021 10:11:49 -0400 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]:42697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liHUY-0008Nf-Hr for qemu-devel@nongnu.org; Sun, 16 May 2021 10:11:49 -0400 Received: by mail-qv1-xf2f.google.com with SMTP id u33so1910531qvf.9 for ; Sun, 16 May 2021 07:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NhwI2DinhpUfdxRi9/Rhzl1MA34OxTKcA00kzZyzkIs=; b=DQSLnql/0w7yqENJX1QF7AVm0h7akgj/Zs81mrT+bD45CTANlRMcGXO/dGPtkQk9VE i5Ilajv7rT9GI1fRxnc7H02HviT73XgFbJwFjJaJAIXzqpjvYEl+pAkkNjOw4tDn0CoW F/o15f4VcSkiQD2EaNdXmWfbc/Q5uG21qUxXX5h3GC6niJ6UVTfNyTJpiEDHgUMw5MHL VpaDpPdcGAQsC0o7tWhfTiSEezDZq3Kz4HVbxJaoy+n/Z7p4EOKOZkaNvtBgIGcKRw7h LVZP22Wrq1UNr1IKNbyZUuKi/UunVoanfKSwGJgrjTJdG/rN4mznbVLJ3MN1ixwmo3/D VphQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NhwI2DinhpUfdxRi9/Rhzl1MA34OxTKcA00kzZyzkIs=; b=Mv/aPl/NJYaCuBk5cMULHiVkPcEAf8qcqmehNfzYY9aR2572LA6Ov4kliq8NK/1FtF +FYuYy+Bh7cYd8n+7OtttJHWre2oqH2rDqB8XwpsPwTOSeza1i7g/Necmza6T1R0unha TEaQAlnzTv4uySJfZCKTA5tqyFcKP45V1v9w+sVCxB0U1SqsSjNe9gwGFv2WV/u5jvES JZD+DL5UTg/gGr3r+nR3nFgqpVL9I54Q9yC2w2R59z0sTTHELM+jL1BNFpP/7jOJDwnC HTmnUhCRZjGs3aibW60pVtC2XlWZ8o8RuAHYGOaHg7F7viamoRnJrO8mp7AjjN5c1qqW 7rvg== X-Gm-Message-State: AOAM531xnK3HN84WTrKkHgXEdj8zgQXj8wKTfahNApqOQGEmhCp6Oov8 hisF9urta3kkk8/Qkf1lEan4TT7gRbCLMdKFBkI= X-Google-Smtp-Source: ABdhPJzr4c229aXPwxbRzHcCvF/IGo78Dn4AFEC+9i3nVgZxla7rMexhpKtlp3PWQBol2yTPN/GF+Q== X-Received: by 2002:a0c:90c9:: with SMTP id p67mr44837972qvp.7.1621174295650; Sun, 16 May 2021 07:11:35 -0700 (PDT) Received: from localhost.localdomain (163.189-204-200.bestelclientes.com.mx. [189.204.200.163]) by smtp.gmail.com with ESMTPSA id j28sm8350102qkl.35.2021.05.16.07.11.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 May 2021 07:11:35 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL v2 1/4] MAINTAINERS: Add include/exec/gen-icount.h to 'Main Loop' section Date: Sun, 16 May 2021 09:11:30 -0500 Message-Id: <20210516141133.739701-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210516141133.739701-1-richard.henderson@linaro.org> References: <20210516141133.739701-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::f2f; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf2f.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé As the 'Main Loop' section covers softmmu/icount.c, add "exec/gen-icount.h" there too. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210422064128.2318616-2-f4bug@amsat.org> Signed-off-by: Richard Henderson --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index f73354fc8a..6f73315dcc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2429,6 +2429,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 Sun May 16 14:11:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 12260409 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45618C433ED for ; Sun, 16 May 2021 14:18:24 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C682B61139 for ; Sun, 16 May 2021 14:18:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C682B61139 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:58922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liHb4-00039u-Qm for qemu-devel@archiver.kernel.org; Sun, 16 May 2021 10:18:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liHUj-00060J-T3 for qemu-devel@nongnu.org; Sun, 16 May 2021 10:11:50 -0400 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]:44575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liHUY-0008O4-Hf for qemu-devel@nongnu.org; Sun, 16 May 2021 10:11:49 -0400 Received: by mail-qv1-xf31.google.com with SMTP id u1so1906729qvg.11 for ; Sun, 16 May 2021 07:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KdbIg3rlUjFYkOGX6SZXklYcLzrscr/66Cx3ugBj720=; b=WRyrctpeo+wrQDRQaoTFP2RKYOiXZnlV+ak0MH7HcWmvQsUVjVj/mjVfUgbU4Av3MW UYC/j8hDp04NPM3mcNN/pyP+AbRtZta5tn5jZS4oXw5eXIc9+8WDQWxVyJxOHO5+p+uP zsJvH8T9YJeYwsmoI+CRGabwRVYJRU8zGC2JyY11YLadSgqxPdpiGeneWjVcGvcsYq7J qIcmzgnhDIQfJK382apsB9t2CLPgmfP+TJnrf5nkg+XkO7s8MKoxHW642WaoCwWIsrJn HYTKMoGy9GIQAvQm7xUABO/MWjMAdj+ja2ESVbeJd4Wz9So8POpBXIZFLdO1nlzFGgDw u7uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KdbIg3rlUjFYkOGX6SZXklYcLzrscr/66Cx3ugBj720=; b=BVKVsVZ7dmAWTfaBCfVMidVsAzkBlQggYpSW+biNu3wc3kh9U7KXjnRLZRQnFlof/o L2s/JjHH7spoGcAPligR9jjsGFmhE4/yDlWondcbdanxeRk4KOTHziEsYudR52ux87va wYnwS5BODWgti1qMgvQbFn0R0QQXe+RVAna1OO6WP5o5pWdrQFgx2WGrkCWnYxF7xxFx uemvMJz1QOXl1TVmyrzvRCoZRJmroMDuoyN5e8pVj73WkbOn9shaOdSsZXDi4UXs/Hf7 X+WQqYWjpN1+Ah4EtJnMfcPXeHrDXA07QqKmvcCIL2CLd8fYyZ+pbcpsJaO4dwxR8OKn 0bgg== X-Gm-Message-State: AOAM532GJDJxECVtOrOTGRlfoEEtj9PSeXN874qxNMEqiviDh8L/eox0 OFpD5f3VevXlsd0JQvjOSUA4oWLVKgtqb3C2FRM= X-Google-Smtp-Source: ABdhPJwx1eaqCnIPEDz+tJnv1tJHAegXJdud42siQ1kTmiaOwy26fOFU2wilThpu9lYRxmmp4rEt+g== X-Received: by 2002:a05:6214:d01:: with SMTP id 1mr55600298qvh.57.1621174296375; Sun, 16 May 2021 07:11:36 -0700 (PDT) Received: from localhost.localdomain (163.189-204-200.bestelclientes.com.mx. [189.204.200.163]) by smtp.gmail.com with ESMTPSA id j28sm8350102qkl.35.2021.05.16.07.11.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 May 2021 07:11:36 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL v2 2/4] exec/gen-icount.h: Add missing "exec/exec-all.h" include Date: Sun, 16 May 2021 09:11:31 -0500 Message-Id: <20210516141133.739701-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210516141133.739701-1-richard.henderson@linaro.org> References: <20210516141133.739701-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::f31; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé 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é Message-Id: <20210422064128.2318616-3-f4bug@amsat.org> Signed-off-by: Richard Henderson --- 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 298e01eef4..467529d84c 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. */ From patchwork Sun May 16 14:11:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 12260413 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B544C433ED for ; Sun, 16 May 2021 14:22:31 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C3B6061182 for ; Sun, 16 May 2021 14:22:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C3B6061182 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:37182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liHf3-0007iQ-On for qemu-devel@archiver.kernel.org; Sun, 16 May 2021 10:22:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liHUn-00062M-Me for qemu-devel@nongnu.org; Sun, 16 May 2021 10:11:53 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:35785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liHUY-0008OQ-Gn for qemu-devel@nongnu.org; Sun, 16 May 2021 10:11:52 -0400 Received: by mail-qt1-x82a.google.com with SMTP id k19so3132540qta.2 for ; Sun, 16 May 2021 07:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kFL9t5OD5k5npkYQzODZhaVeI1U1ot/HuEftF5u8qrE=; b=pERvsXpYrqy1KTcDdSioqCE5MxLpyNYghfUyg+g0gfcj348cL1D6YhCHUtPs1jjiIi LpOY667M2+Y1dY/7/6YwXp28j9zaVQdgqGvZfLRaLt2VC7TqyE8mixq2+9hznB4wAKiS ZeQX9wgrAj42c4NpSOUFKVaLRrBma89odom0cpf1YpPy5FtjMzjTaINZNtGMqERHchuu I9+QGSC+4xTVY0iLYrRL9fpjCrNADry4cLEVCMEQsNGKiWdNieZwXRJ4bpWJA8zKmrqv NsNvPsENgT2SYJQrqsa9r8Dj6wAfbG5Mqhe7fgW9oL5tZgccVoqknHDgGrFFz+frlZEU vtPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kFL9t5OD5k5npkYQzODZhaVeI1U1ot/HuEftF5u8qrE=; b=ZJ/VqkcEhbLr3xA/0u/K333tatw43MUpSAeuJnoXhZKQBljYGgmL33YGSDHCk0EjAV +nHdEetRZVAsgJlx1nqr4WYA127COBmvZV8GKIs1OoB5ujFe/QSXBqkTJIA2TRU21Fge k/Yyd5MHugPT2dGIlhM+4rM+Cz2455v+A0LsBGF2iU7DPdC+8ziQ9+P5i63oDaeogdGg VkwegID0JxrjAmWGMLxFjiSRtUX+5UD16Wcb0Nfmb3Ewa1wVZ81brxXTH/e8xcOrsPRv jdLb7vbkZ/7ga8DF4cRRF3RomqvKv1juwAavhwNGRsXmFyXrNgWSjo0c+v1g8IZQNK7j aqFA== X-Gm-Message-State: AOAM530wEKuVw78dqSoW3mQvuA2H0J0PolOBSdNSmoK+IhVf4rH9q8CP xCoQ1SPMm3+NKJN4BNqIOgj/CMUvYX9FuuL1dGc= X-Google-Smtp-Source: ABdhPJzkTdnppOjQAPcJ3HSo0Ir+qpx1OZI8jzSLYg/Z7huH2nKYYl2o6gosAB817VI5kFj58XXZFw== X-Received: by 2002:a05:622a:202:: with SMTP id b2mr20834919qtx.343.1621174297105; Sun, 16 May 2021 07:11:37 -0700 (PDT) Received: from localhost.localdomain (163.189-204-200.bestelclientes.com.mx. [189.204.200.163]) by smtp.gmail.com with ESMTPSA id j28sm8350102qkl.35.2021.05.16.07.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 May 2021 07:11:36 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL v2 3/4] tcg: Add tcg_constant_tl Date: Sun, 16 May 2021 09:11:32 -0500 Message-Id: <20210516141133.739701-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210516141133.739701-1-richard.henderson@linaro.org> References: <20210516141133.739701-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=richard.henderson@linaro.org; helo=mail-qt1-x82a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Matheus Ferst Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Matheus Ferst Used in ppc D/DS/X-form load/store implementation. Signed-off-by: Matheus Ferst Message-Id: <20210512185441.3619828-24-matheus.ferst@eldorado.org.br> Signed-off-by: Richard Henderson --- include/tcg/tcg-op.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/tcg/tcg-op.h b/include/tcg/tcg-op.h index 2cd1faf9c4..ef8a008ea7 100644 --- a/include/tcg/tcg-op.h +++ b/include/tcg/tcg-op.h @@ -1096,6 +1096,7 @@ void tcg_gen_stl_vec(TCGv_vec r, TCGv_ptr base, TCGArg offset, TCGType t); #define tcg_gen_sextract_tl tcg_gen_sextract_i64 #define tcg_gen_extract2_tl tcg_gen_extract2_i64 #define tcg_const_tl tcg_const_i64 +#define tcg_constant_tl tcg_constant_i64 #define tcg_const_local_tl tcg_const_local_i64 #define tcg_gen_movcond_tl tcg_gen_movcond_i64 #define tcg_gen_add2_tl tcg_gen_add2_i64 @@ -1209,6 +1210,7 @@ void tcg_gen_stl_vec(TCGv_vec r, TCGv_ptr base, TCGArg offset, TCGType t); #define tcg_gen_sextract_tl tcg_gen_sextract_i32 #define tcg_gen_extract2_tl tcg_gen_extract2_i32 #define tcg_const_tl tcg_const_i32 +#define tcg_constant_tl tcg_constant_i32 #define tcg_const_local_tl tcg_const_local_i32 #define tcg_gen_movcond_tl tcg_gen_movcond_i32 #define tcg_gen_add2_tl tcg_gen_add2_i32 From patchwork Sun May 16 14:11:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 12260415 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26502C433ED for ; Sun, 16 May 2021 14:24:06 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C790461028 for ; Sun, 16 May 2021 14:24:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C790461028 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:39528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liHga-0000vY-Pr for qemu-devel@archiver.kernel.org; Sun, 16 May 2021 10:24:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liHUo-00065A-Tg for qemu-devel@nongnu.org; Sun, 16 May 2021 10:11:54 -0400 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]:42699) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liHUY-0008P6-Je for qemu-devel@nongnu.org; Sun, 16 May 2021 10:11:54 -0400 Received: by mail-qv1-xf31.google.com with SMTP id u33so1910550qvf.9 for ; Sun, 16 May 2021 07:11:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7LnBFW5fSh3VKASb4De0S9Ena1rdwhnkiY8x0DnPIig=; b=BYm6Sg4yNMxHtSNOZwsdfE+RUeUvgGu2Pa+wSHhRQggBuhiTmR6I96/xmhpwEKM1x5 aKYSmrEOfobnvPjiSFtrLMYhQVmxyvf8l8wtJko5zVVuqt/IKDUKsObc9edRuFHGQ8sz yEhqs+lLqoPXFf2xucD8qsBmDbShjGOv/8Dcho8ly0sM3xuDgZnhylrU+d1hr4cLV+FR lUMlaYXJMDPp5BJPUG3YrBGNPFht0r/pPb4Z2ig8SxutZdf0uM7NPmQBNHHmrUyZ2x1d WV3Ui6rorhlu8bjVERWzmEKAuM4EaTgaLTaLfPvfRX7gJTYYFt/RE/6arewnwDUpyacJ BPBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7LnBFW5fSh3VKASb4De0S9Ena1rdwhnkiY8x0DnPIig=; b=ANQvrvjl/CkiTsOfYeyyWt6Z0OuDx4A7zin1c9ky7DR/lbhEIT23jnu32HcmgiZz7i FRuqy3yOtdv7Pj03UYwTxgVTLdUTvWx3bGQutgDBxqPy9J1PlidvbboxB6s3seszsrcl rtkwTDQCjTZ1VgydwBbybXr4nmdQWohIbl5qYMqSxj5yqFJuFwFqT+pLs2uxtHXZRYkH AaJdYsXYzlnWWBfGCJ47z3RfS99oMz2yfVWVi2Z3T+kzjR0gqX+YVduy//QTJEOn9hvc MvjQMQXNW1ccL9BDw6cs8H8Ocd+zhvvgP+Mx5uMuiFWuoU2q/RHrWGqIAx9pR5ZAWFTK yRgg== X-Gm-Message-State: AOAM532ekGEITwFunXJVN1efsJpt5zYaePx6y44PWwPyTOAp++51zMD0 bngNLasemJwI3uEvyv3tWvzSYBHKTZupB5flx0g= X-Google-Smtp-Source: ABdhPJw5ZCeeGPHm2Tg3ZbNAgKT/Cd2PnXAln+gbjO26hoa6tsG0t/FQuuE7mr/SY3RwJg7qsOcKkA== X-Received: by 2002:a05:6214:10e9:: with SMTP id q9mr4340567qvt.45.1621174297864; Sun, 16 May 2021 07:11:37 -0700 (PDT) Received: from localhost.localdomain (163.189-204-200.bestelclientes.com.mx. [189.204.200.163]) by smtp.gmail.com with ESMTPSA id j28sm8350102qkl.35.2021.05.16.07.11.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 May 2021 07:11:37 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL v2 4/4] accel/tcg: Align data dumped at end of TB Date: Sun, 16 May 2021 09:11:33 -0500 Message-Id: <20210516141133.739701-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210516141133.739701-1-richard.henderson@linaro.org> References: <20210516141133.739701-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::f31; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf31.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé To better visualize the data dumped at the end of a TB, left-align it (padding it with 0). Print ".long" instead of ".quad" on 32-bit hosts. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210515104202.241504-1-f4bug@amsat.org> [rth: Split the qemu_log and print .long for 32-bit hosts.] Signed-off-by: Richard Henderson --- accel/tcg/translate-all.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index ae7e873713..fbf8fc630b 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -2042,8 +2042,15 @@ TranslationBlock *tb_gen_code(CPUState *cpu, int i; qemu_log(" data: [size=%d]\n", data_size); for (i = 0; i < data_size / sizeof(tcg_target_ulong); i++) { - qemu_log("0x%08" PRIxPTR ": .quad 0x%" TCG_PRIlx "\n", - (uintptr_t)&rx_data_gen_ptr[i], rx_data_gen_ptr[i]); + if (sizeof(tcg_target_ulong) == 8) { + qemu_log("0x%08" PRIxPTR ": .quad 0x%016" TCG_PRIlx "\n", + (uintptr_t)&rx_data_gen_ptr[i], rx_data_gen_ptr[i]); + } else if (sizeof(tcg_target_ulong) == 4) { + qemu_log("0x%08" PRIxPTR ": .long 0x%08" TCG_PRIlx "\n", + (uintptr_t)&rx_data_gen_ptr[i], rx_data_gen_ptr[i]); + } else { + qemu_build_not_reached(); + } } } qemu_log("\n");