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: 439886 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp311542jac; Sun, 16 May 2021 07:13:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtv7XrhBUihzllN5NqVTq1xOJnW8cO20q6i8LKmLiL0/Om/F0tJyEIxWigJU9/6AF/ybNj X-Received: by 2002:a67:d48e:: with SMTP id g14mr33727686vsj.7.1621174404736; Sun, 16 May 2021 07:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621174404; cv=none; d=google.com; s=arc-20160816; b=gWm8syHDJsD+WjGSaNcnKHVuuSSX6FpHUBCkNGBVIKkvSciQawfWZ/Ua4xAmgAkWVH OedgpiHtt9h0SnNp45F5L3ehrcikdXiEVBAzDZoIFIEqOaH0q9T9jstiREM1LMkPEAvs h8q/L7S67cnTuTUqgryliNJWsMdcGTiF+SfzqaJGks07WD2/PspWiCM4D8lfjhZd+QOJ U2yjny+8bdBZn+2Cj2y3u17qZMg7hAgcj8SMSZvTW3fIgfsVsKVbOZNjIilmX+TLqcF5 FyHK/d+iyr4SCOAEnOa+GDrj7c4wt7AXJcR+bg7oRFXCq5zx2CVYse4E6N3Jfd923yIW AvCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=NhwI2DinhpUfdxRi9/Rhzl1MA34OxTKcA00kzZyzkIs=; b=voKD3+Ge/2GAYLKbMKrzY9zYuNSJjzUh5kmsyZnwCh6B1/pPUgjHoFZ0nyUzTwxQDU Jqn4TRJuU5S2XfBwN4O5K0S8PrLjTzYjTueS1UuALFyojmEzlCgX9d0JCGPgiibAwjHv qwl8LTL309DjcdOcKamBVBRJJ/pGZbtIFNnSQBFxxJwUFcHoX8bspK8brq2gIA4p6iVm SClvJZ0MyiERj17dUGnznbfBRfOAiJ+CDbF9ZqhJLxiuqzcWdgRUTrOMKJvG4q665jZ5 Xhl6cr7x3V49RYqvKN8ZoLB53a0YoiJjQgIWpOhWdmZaftd34/kJaKyhK5hZsjZbFHua iEYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DQSLnql/"; 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 h27si5973742vkn.51.2021.05.16.07.13.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 May 2021 07:13:24 -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="DQSLnql/"; 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]:52276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liHWF-0006KZ-Tz for patch@linaro.org; Sun, 16 May 2021 10:13:24 -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-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+patch=linaro.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(+) -- 2.25.1 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: 439887 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp314157jac; Sun, 16 May 2021 07:17:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNqHCPR8wToVSwjmM+d/O8E12OBvgNvRyNGSqGmtiTtSUa+J0XjEP7ewRGZRS0hq/HkAlV X-Received: by 2002:a05:6122:1349:: with SMTP id f9mr42855684vkp.18.1621174657369; Sun, 16 May 2021 07:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621174657; cv=none; d=google.com; s=arc-20160816; b=rbfBe/72m1KGxV7d6+kqMmvZd7GCO4cWonhnmCdoN+8+4Mc83DzzcszqO1nZvTrkcr kjULmbM9T26SFTMb0TXcWmtWVS0724vYEduCjmLH2QtGtkt8fymKkGT6R9qR+EqMhpc2 YwyF297kMF7bK0OisdTu2G3S9I29JbfhYaywwcO7Hf4kKuPUlMrb6VfiZxlNuAWdBW0R n1s14ssJLoj97cBMKzbXIDJa8II8fim5pl/1IPLlxwX+JuJiehkRn845mB/AJyPngBE+ DLBUdCsXeDUmo676fYtV9PL3BhhPGz3mxE44gc9B/AEMlCMoli8bj67QjH8IJoiUFWMd MC/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=KdbIg3rlUjFYkOGX6SZXklYcLzrscr/66Cx3ugBj720=; b=pU5Y+iHQfyqF9Jv+oB7LKU5h2QR5rQOmQ/smgZDm2zgfinq08zzEZgFwwzXCpi2Itn e6zjPu0PH/yAxGIrkmW3JTsHYP9etQru29HrPBRxwDdT4owoJJcxqzyJpxGzaZp7koYj LZiUxTslspP1LSZcRCMLotsb+mHpk3JLq63yGEJlN4crhXEFiJMaPxiJKS+Ff581VqSS 1oPuaQY40jz1EYc2W6FjlFVpxR3Y0IotUkTbGO/z+XuOwtdCLdGD9FkXZnLqUFYp1Lbr ueU+KjCaqx8CaWj0/A7nkaYZ1j1pY/oYRXKaCkUlxnaFzeFuoHX8dqDOg7Gc2sMiy8pW QY0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WRyrctpe; 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 n2si5428642vsm.350.2021.05.16.07.17.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 May 2021 07:17: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=WRyrctpe; 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]:56760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liHaK-000189-Q3 for patch@linaro.org; Sun, 16 May 2021 10:17:36 -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-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+patch=linaro.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(+) -- 2.25.1 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: 439889 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp316600jac; Sun, 16 May 2021 07:22:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwA4SrOjywRvVo8aY6/Pminv6alOhXQIO5kjtXtH6NJVXXhPTzSlQRyDTkYK0S+5lsMgnvY X-Received: by 2002:a05:6102:a08:: with SMTP id t8mr2537046vsa.60.1621174922927; Sun, 16 May 2021 07:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621174922; cv=none; d=google.com; s=arc-20160816; b=nhtvsbvX34b2Z4xCHHPYiNInXCHMEw3+VNy3lVVaqUsDwRUEXidCZQInVxr+ZHK15f OqCDpJYQa0kajPWD0Jj5rXAz6YnmiaobPES0bDTwn2DMbSDmA9/jbEbCVgo1zoYmx3Hc mWUzX6lc/oQr9qUjkM8Fl8V/8sJB5/l7Ys5zS3tg1AdJDdrmMgtujr22MAr9h4ByILtq mEf5Xx9AH+auIv8pDLPTXHX87yum7L+mmHaXceEni9rjXsZDB0m6TdOtawxnx/wM5hcd 5WTwGkuqI5AfViGQq33eKXQ+m6mVZydiBjF0llG42kRsZMgaqusu9QvUbwtlHomCy5NQ bthg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=kFL9t5OD5k5npkYQzODZhaVeI1U1ot/HuEftF5u8qrE=; b=wSjiqi0XuvIIHghh7b32ezwmYjRIPCMZ0xjHfFN4ATu1nXch8dz+O7Bp2vVUUMRW28 HrCYujyTIDygzXBoAk4Cs95mo9yEu+/5YBC8kOVQ+oPWJ0t71FcqHX7ndUVbBOcZkv0U J6Yk69+iAc7++CQPTKMj6JaLWhdzOx+qOoRADmsHCMays7FyEjsQK6oxuooKRbz8BUnl pMWs84E/hgALbVnEBHWgDh5fXUPuxjPahR+vuWK3PRulGrs/w4B2IWrc7q+ftRmASycD vfOVyd5SzcGxv3eupIuWA2G+PXdSPwZvQ2NqTicrVcuOHhpOPN46LFTqOIPUxOfeG1pd QBag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pERvsXpY; 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 f28si128109vsl.399.2021.05.16.07.22.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 May 2021 07:22:02 -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=pERvsXpY; 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]:36202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liHec-00073U-At for patch@linaro.org; Sun, 16 May 2021 10:22:02 -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-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+patch=linaro.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(+) -- 2.25.1 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: 439890 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp317588jac; Sun, 16 May 2021 07:23:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzFoDUJI0Snx+v/AHln3wow3hh64P7iIKUnsezfHBqTZZGJBbRPwk/M0A7O6k4pbfbh7Zl X-Received: by 2002:a02:7348:: with SMTP id a8mr51976907jae.116.1621175034248; Sun, 16 May 2021 07:23:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621175034; cv=none; d=google.com; s=arc-20160816; b=TwVtx2Ya8cdpr35bQUggKyw9ka8guyUtcpV8A8UwhkE6lDRMhCKa9wufViIHOblTcR /cEVcxuuE/Y5KX12QSyrpZNpdi4sGmBZRmEvz92XkiAXTcWSwLzrBl1ky1X+P4JqB8Mw 8b/edB52VyMpq82JZjDhzTs/mHmphsWOk3wINnApNSINhfEACJpoABROSRhBLmomOjzA 3zYvo/rpCmCSK3ZePcAxd73eQ+LTl+x3v3nBEzVfcNI4RQQzbirZamL+l0EpwIeOhmO9 zxMtQiCEL77cxKHMnRmSNHAq8Ba0JQvwyhcHJzuR1jPdNgGyXc6bzHXM+tvv0EEPtOf1 GuYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=7LnBFW5fSh3VKASb4De0S9Ena1rdwhnkiY8x0DnPIig=; b=dlAecyfBoFM5S+5RaFZkgLTj6CPMIUVwhI1PxKnqVVshqBu/3TL+II3pktNGfxhcN2 5/koyVvu3lzDLVRoCoHma44DpYY5C6dI1oaeu66QII11AuL6FlWXwYppvs1RK3XFC0WR I0qBIIciubhovlZzqZEkeaAcnC2gk3rHJpAwZjNloumOpJA9meTet67OkNG1xydf0b6+ bo16JXlU5Pseud1Zov/SJ7en1EzvWD2a14wId1YbK2r5M2/WoN6U10XgfV3GNvRBer0S WFhdBTcCkFNxucvn68QvGzHD63v8iKoLc+xJjXL3LqQbZodAqH2pAJfaX8bX0h493QJP 7a5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BYm6Sg4y; 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 k8si15075335jav.68.2021.05.16.07.23.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 May 2021 07:23: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=BYm6Sg4y; 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]:38288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liHgP-0008Uh-Ol for patch@linaro.org; Sun, 16 May 2021 10:23:53 -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-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+patch=linaro.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(-) -- 2.25.1 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");