From nobody Sat May 11 10:34:48 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620908974; cv=none; d=zohomail.com; s=zohoarc; b=N0SahqVEOXa6Pm8oN7EMRwL4yRC1objOxlEqfZZn4g6aa/v8ZFCkWMpegpT3AJciSg8NOJ5A3prSJYGrhl6vb3v8cXaUtrAONKwXBjN/TEPOip0Q96I/Q6yV1TyC1tsK4wQdR0Xb49wxWMaUA98AhjCFgf6v8TEnGSoHxuC38Mw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620908974; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=VLCVp6p+lxpak6IzuRy6OUB/8rfv/8V8rR0K7fXS3B4=; b=Zf79x3bpyCfK+Ogb59iBXOvWcS0Q0O4f4EOhjv5E2agJHIof+VVM/fytUbgIWfZ983d9+EL/4tIfdWmZRWCeBckiynBp6LriCbEjX2VwT/R5IyfRHFDxmQ9zyPKknJIAQ21LivmelFeWUfR59r9vzonydEH1cI7Sajp+OYE4Wdc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620908974389116.50413055210777; Thu, 13 May 2021 05:29:34 -0700 (PDT) Received: from localhost ([::1]:51434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhAT6-0002z6-IM for importer@patchew.org; Thu, 13 May 2021 08:29:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhAK7-00060W-T7 for qemu-devel@nongnu.org; Thu, 13 May 2021 08:20:15 -0400 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:47056) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhAK5-0001GG-1r for qemu-devel@nongnu.org; Thu, 13 May 2021 08:20:15 -0400 Received: by mail-qk1-x72c.google.com with SMTP id 76so25201345qkn.13 for ; Thu, 13 May 2021 05:20:12 -0700 (PDT) Received: from localhost.localdomain (163.189-204-200.bestelclientes.com.mx. [189.204.200.163]) by smtp.gmail.com with ESMTPSA id b3sm847262qtg.55.2021.05.13.05.20.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 05:20:11 -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=VLCVp6p+lxpak6IzuRy6OUB/8rfv/8V8rR0K7fXS3B4=; b=bQVXAX1VOCGZ3IhhqH16/c90MmKmaIFS5PUhgMHiR7Twrxy6XKimPIDgUB+gKlR+N3 ebqhOci0ots3aPRur4AV4OkB2IWGjVzZNCNuGeqKMtoz+mILY7rRiMbcV0d07H4IeY5c ZhzJUYBX/q6UxZiLqNFu4bdn0hjHIaHBAf8DeVvEd6Wx1ozVxZwDvX8qap44onVF5d4j Vh2H8DX8gv18nEBcmqpWj04K+2l9nX6dOvFV+vp+I9MF3kCobaJ4+Wh4+ZsVk7V+/oXD fBh1c3JEs6GezTF2eGbi64V/S+gezbeAiVrq3fCS1c5bjMPGQS15cUTgYoFPUaXhGLgJ 0k9g== 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=VLCVp6p+lxpak6IzuRy6OUB/8rfv/8V8rR0K7fXS3B4=; b=HzyVYIdeA8Is0GhsMRJXuQ+GdrqllfHME9Y0Jrjc40wKNz5pHdihGtb6C+bArllk3e D6DOmfy2Jwps5oz3eeKTey84jmr3bJvNwlpL1mWWnuuhZqMZLvd2BzMB9YSlinSuB9i4 GpxPM3zcRTYW6xGYC0ujQz7owKUFbWzn/+LTcw5qQIYHfPSelD0Sr9nZLANUz0SVZGn5 GUAEpCt8DybFxev9RtxlQGZMfgSRqPsBUwQj+QqVHKD3rviZv1J8Runw27NlkQ6KDiAF J8jmS1qNgwFXjj+0dhsiTG+y3wI+J4KTEK5XWN35hSK0mypfEK+emNJ4Fm/P+L4Qj9i9 50mw== X-Gm-Message-State: AOAM533/plm3kGqPplKVr1fAJlSVFhupYbW23eU0nn+5S4KmxU4PbJiY jRATf3PpdW4/XbVmfBr9jUe+EFgSFIyRAeBXwDM= X-Google-Smtp-Source: ABdhPJyeGJ2Cz3cOaBGGbCBKp1oPcQADyXfC7v4tmXIY7bhzevb6iqZZz6LUKnCwb1U/5RTk+f4EUQ== X-Received: by 2002:a05:620a:2291:: with SMTP id o17mr17195803qkh.150.1620908411301; Thu, 13 May 2021 05:20:11 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 1/4] MAINTAINERS: Add include/exec/gen-icount.h to 'Main Loop' section Date: Thu, 13 May 2021 07:20:05 -0500 Message-Id: <20210513122008.207491-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513122008.207491-1-richard.henderson@linaro.org> References: <20210513122008.207491-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::72c; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x72c.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=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) From: Philippe Mathieu-Daud=C3=A9 As the 'Main Loop' section covers softmmu/icount.c, add "exec/gen-icount.h" there too. Signed-off-by: Philippe Mathieu-Daud=C3=A9 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 c733c53bf7..808e4ec74e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2477,6 +2477,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 --=20 2.25.1 From nobody Sat May 11 10:34:48 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620908601; cv=none; d=zohomail.com; s=zohoarc; b=lgM/fMB0eDIEeM1SOvQYsoNkSkMdAS3azsH7JycnZ10XbEQd82eYRIEMceaef+scAToNCl8X1ESa3U7tzHM1aCtK0kgxST1gLlRNaB7RlTnz9MAT+1qDtvUsYAfm6X2OBciimoCuJz43QR0x8RFahPXS+0fjRtaGXK6mrrIGl1U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620908601; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=KdbIg3rlUjFYkOGX6SZXklYcLzrscr/66Cx3ugBj720=; b=f9JUivikK60klNJdkCIjphO9+bc19kgyTnbdEe2YNjq4boq+5sttsFT4aNA92T4q2ZmIpzOonqf+kEtSN2EafbdSN+y5MYeTBh4kdczh446UyDEt+Lnj+fo23glJYphwjLsyCPfklfekK/AKw8muF7S4s5tzgK4zd9vbMBfO58Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620908601464755.0067293576352; Thu, 13 May 2021 05:23:21 -0700 (PDT) Received: from localhost ([::1]:35252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhAN6-0000Us-9q for importer@patchew.org; Thu, 13 May 2021 08:23:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhAK8-00061R-D3 for qemu-devel@nongnu.org; Thu, 13 May 2021 08:20:16 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:39877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhAK6-0001GP-0F for qemu-devel@nongnu.org; Thu, 13 May 2021 08:20:16 -0400 Received: by mail-qt1-x82a.google.com with SMTP id f8so15384943qth.6 for ; Thu, 13 May 2021 05:20:13 -0700 (PDT) Received: from localhost.localdomain (163.189-204-200.bestelclientes.com.mx. [189.204.200.163]) by smtp.gmail.com with ESMTPSA id b3sm847262qtg.55.2021.05.13.05.20.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 05:20:12 -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=PJ7Lz7Bd7b5BSpNPvo0QQJRA5+3vWxRdZtApO5sC3SZbjThpRGRgdcpN3wwPSChHtF hM7ZcUZETux1U9Ply8PcFjGxO5S6u8m9yew87G08AgvIdzGfQgwNXDVst8Bnkt5GsVvm hqknfF9xriH92KC2ZOzQu11DeWSskiELPUrt9qnGABN2+yPkfEANbZQNMMaO/KsfgWNk 8Bi8JH1hYmp9lnYHVpmm0UQgLa4jqmoPCpMSdL1i1y9aDW/ZMkT7yQxe9uDtNYNfI/cc Il1mj0Izcxo5pJHd9QyeEkE/lZMOtvXIYy9gdTlwg4tmYh0flF1jgKapZTaHq30JdWUH Et2Q== 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=YVulL7Xs3Txtmt+0jx3YtO8bFojv31TiH3x7fiKaEAicRJXHda72F7rOvy1eELCBoN 7xd7MYgWyFMkxl0u56C8k1qQFFrIxHvhI2HDWmYDzmNRUB2ChTaImB3OZRnQ80976LXc wocfXmqNTYtL0hrW9r06LqzYPtMij60DyDkqO1TMou0/SGkM+ZbkqZEtO9AE/WlzkpL9 CRgHuI2/QJVrDcChWbu2aFmgwI9cu+hl6DmkpkMENhl+R4iP/drpWWu1e+CETHh0Mo2x 0K/0a+fEoiU+3ZCMFOsVTlKjfDAT/8X9jzQVkveq17lK+al6lP+F0ihNCrz87KmWgaog rf1g== X-Gm-Message-State: AOAM533+a+OaZaEjQebJMHqTH3CByJP4wFWNIkVM8lrLQ7R8FZ416qiF GuO5VDG+BrJqmX9JOh1A5fCVC+jbWs6I8eBGDhw= X-Google-Smtp-Source: ABdhPJyQm18rSWB4WUzsATbhx4u7o0Em9yczzc0DY5tNN6GHbHkj5HQeQu7oQ7Di1P02JLqsHpB2Bw== X-Received: by 2002:ac8:1014:: with SMTP id z20mr37695654qti.65.1620908412208; Thu, 13 May 2021 05:20:12 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 2/4] exec/gen-icount.h: Add missing "exec/exec-all.h" include Date: Thu, 13 May 2021 07:20:06 -0500 Message-Id: <20210513122008.207491-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513122008.207491-1-richard.henderson@linaro.org> References: <20210513122008.207491-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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=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=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) From: Philippe Mathieu-Daud=C3=A9 When including "exec/gen-icount.h" we get: include/exec/gen-icount.h: In function =E2=80=98gen_tb_start=E2=80=99: include/exec/gen-icount.h:40:9: error: implicit declaration of function = =E2=80=98tb_cflags=E2=80=99 [-Werror=3Dimplicit-function-declaration] 40 | if (tb_cflags(tb) & CF_USE_ICOUNT) { | ^~~~~~~~~ include/exec/gen-icount.h:40:9: error: nested extern declaration of =E2= =80=98tb_cflags=E2=80=99 [-Werror=3Dnested-externs] include/exec/gen-icount.h:40:25: error: =E2=80=98CF_USE_ICOUNT=E2=80=99 u= ndeclared (first use in this function); did you mean =E2=80=98CPU_COUNT=E2= =80=99? 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=C3=A9 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 =20 +#include "exec/exec-all.h" #include "qemu/timer.h" =20 /* Helpers for instruction counting code generation. */ --=20 2.25.1 From nobody Sat May 11 10:34:48 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620908602; cv=none; d=zohomail.com; s=zohoarc; b=aItkMdPekPlrx32Rh1++2wRbbrbj6eu0WdcCn2LbXQVEBvyEYsjt6+zZLVh8wUloOVLmGyS0NyOqLVW32GXXiNi/66sGBs4sapi+Dh2C7P5+dbyFCD8rMKG+0bZ48NeladUkfDN6eIq6W+jeYYX0nBi3y0g0RchMVue/FyJ92aU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620908602; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=XBNO43ndtkHe3HspPtwZPAlVXKJsSD5gwavNah1YJ6o=; b=cHHjeYsx5rHOUUY61z3tl1J3iP5kvIvuHl85OaBXwq/W8HIE+0Zlx8a66AetzgDBcHjL0XMyhnj4rRq+N+gj5IN54LDkwFj2FKCcq1mXj7mYOvSOlmeF2lZZ8Id9+TkVVa17M+Iq/C2EhiQEf6NKuED4qVv5N7lMxsVjmz7kR+k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620908602413578.4494795090586; Thu, 13 May 2021 05:23:22 -0700 (PDT) Received: from localhost ([::1]:35294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhAN7-0000Wb-8T for importer@patchew.org; Thu, 13 May 2021 08:23:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhAK8-00061w-Ok for qemu-devel@nongnu.org; Thu, 13 May 2021 08:20:17 -0400 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:41739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhAK6-0001GX-Dq for qemu-devel@nongnu.org; Thu, 13 May 2021 08:20:16 -0400 Received: by mail-qt1-x82b.google.com with SMTP id t20so15258120qtx.8 for ; Thu, 13 May 2021 05:20:13 -0700 (PDT) Received: from localhost.localdomain (163.189-204-200.bestelclientes.com.mx. [189.204.200.163]) by smtp.gmail.com with ESMTPSA id b3sm847262qtg.55.2021.05.13.05.20.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 05:20:13 -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=XBNO43ndtkHe3HspPtwZPAlVXKJsSD5gwavNah1YJ6o=; b=odounVDkwM9Wwv/e7AgnKS82o6mwKSBFVzddxEYLB9dZ9q4KYU/ihykOsqxmUY1ITY nzum+FoYtYmsQE+tlPp/McYAG/SeKyiYIgRWIxEx3hX8y7iuOCM9dQjANat34ZX/MUss WCy0sp4RQI/k7ToMWi26lBhNfZbJvpLc/rYTVKmvQAMCSZzCV7KDP75zoQ8WB7jCtflW X1DMLawJXPJO1FTUI/hP1HxDts58vgaS5mmMXC9TW1jnGoflfq/9rfOT28BheHiXu+Zm GpUI4oVqI74qzxwwJQ0kvWfn7u8Exv+5iuXFNcN0BJ5GJD2Dr70vXY0vwqMPyE7kbbmh RReg== 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=XBNO43ndtkHe3HspPtwZPAlVXKJsSD5gwavNah1YJ6o=; b=UrJbrwC1dr/XERRng016JCG6ui19fjO5MMXf1u14AvmOimZtnyn+Pggdq8k2cLUtgD tUVSWFZHbjseCARHYepZyGObwXGBsYLu1zoTka0NjIpiIFL9s9r3VQTQIOC6vnmUaKQo /o6i2ZCgDyddgqj3Bxypfrscx7I92KMY5llpl5OWCWr4TZdyAPeJXBLMBeX3zZDVeb87 p0Xj2gvVVkwaamOyJjn9Opi2zGzIp0HBnECip4cWLY4RCyCirsPnPvzFM3dz6NkCAwwC 3dTfhDMmb6PkZz+IHdZvNRDgrKxrHmi51s3h98VtdcJPNLtcalENllwNiibrFyt/enXd 7CyA== X-Gm-Message-State: AOAM533wstIS7YaqYPRWqSoUjT5ZJp8zloWaidQ+16WM0IRhtI0peTON jTZZf7/EjABggx+pa32A8Jji7US5Cuu2hEBLr+4= X-Google-Smtp-Source: ABdhPJxZur472MJCmYxcBAzb8YvKPijFuU30reodLcDXaCXyFMlU+MdLBRVB+Tn17W0her05TburWg== X-Received: by 2002:a05:622a:138c:: with SMTP id o12mr39155299qtk.190.1620908413319; Thu, 13 May 2021 05:20:13 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 3/4] tcg: Use correct trap number for page faults on *BSD systems Date: Thu, 13 May 2021 07:20:07 -0500 Message-Id: <20210513122008.207491-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513122008.207491-1-richard.henderson@linaro.org> References: <20210513122008.207491-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::82b; envelope-from=richard.henderson@linaro.org; helo=mail-qt1-x82b.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, Mark Johnston , Warner Losh , Juergen Lock Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Warner Losh The trap number for a page fault on BSD systems is T_PAGEFLT not 0xe. 0xe is used by Linux and represents the intel hardware trap vector. The BSD kernel= s, however, translate this to T_PAGEFLT in their Xpage, Xtrap0e, Xtrap14, etc = fault handlers. This is true for i386 and x86_64, though the name of the trap han= lder can very on the flavor of BSD. As far as I can tell, Linux doesn't provide a define for this value. Invent a new one (PAGE_FAULT_TRAP) and use it instea= d to avoid uglier ifdefs. Signed-off-by: Mark Johnston Signed-off-by: Juergen Lock [ Rework to avoid ifdefs and expand it to i386 ] Signed-off-by: Warner Losh Message-Id: <20210506173826.72832-1-imp@bsdimp.com> Signed-off-by: Richard Henderson --- accel/tcg/user-exec.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c index fb2d43e6a9..d2acf6e82c 100644 --- a/accel/tcg/user-exec.c +++ b/accel/tcg/user-exec.c @@ -259,6 +259,7 @@ void *probe_access(CPUArchState *env, target_ulong addr= , int size, #define TRAP_sig(context) ((context)->uc_mcontext.__gregs[_REG_TRAPNO]) #define ERROR_sig(context) ((context)->uc_mcontext.__gregs[_REG_ERR]) #define MASK_sig(context) ((context)->uc_sigmask) +#define PAGE_FAULT_TRAP T_PAGEFLT #elif defined(__FreeBSD__) || defined(__DragonFly__) #include =20 @@ -266,16 +267,19 @@ void *probe_access(CPUArchState *env, target_ulong ad= dr, int size, #define TRAP_sig(context) ((context)->uc_mcontext.mc_trapno) #define ERROR_sig(context) ((context)->uc_mcontext.mc_err) #define MASK_sig(context) ((context)->uc_sigmask) +#define PAGE_FAULT_TRAP T_PAGEFLT #elif defined(__OpenBSD__) #define EIP_sig(context) ((context)->sc_eip) #define TRAP_sig(context) ((context)->sc_trapno) #define ERROR_sig(context) ((context)->sc_err) #define MASK_sig(context) ((context)->sc_mask) +#define PAGE_FAULT_TRAP T_PAGEFLT #else #define EIP_sig(context) ((context)->uc_mcontext.gregs[REG_EIP]) #define TRAP_sig(context) ((context)->uc_mcontext.gregs[REG_TRAPNO]) #define ERROR_sig(context) ((context)->uc_mcontext.gregs[REG_ERR]) #define MASK_sig(context) ((context)->uc_sigmask) +#define PAGE_FAULT_TRAP 0xe #endif =20 int cpu_signal_handler(int host_signum, void *pinfo, @@ -301,7 +305,8 @@ int cpu_signal_handler(int host_signum, void *pinfo, pc =3D EIP_sig(uc); trapno =3D TRAP_sig(uc); return handle_cpu_signal(pc, info, - trapno =3D=3D 0xe ? (ERROR_sig(uc) >> 1) & 1 = : 0, + trapno =3D=3D PAGE_FAULT_TRAP ? + (ERROR_sig(uc) >> 1) & 1 : 0, &MASK_sig(uc)); } =20 @@ -312,11 +317,13 @@ int cpu_signal_handler(int host_signum, void *pinfo, #define TRAP_sig(context) ((context)->uc_mcontext.__gregs[_REG_TRAPNO]) #define ERROR_sig(context) ((context)->uc_mcontext.__gregs[_REG_ERR]) #define MASK_sig(context) ((context)->uc_sigmask) +#define PAGE_FAULT_TRAP T_PAGEFLT #elif defined(__OpenBSD__) #define PC_sig(context) ((context)->sc_rip) #define TRAP_sig(context) ((context)->sc_trapno) #define ERROR_sig(context) ((context)->sc_err) #define MASK_sig(context) ((context)->sc_mask) +#define PAGE_FAULT_TRAP T_PAGEFLT #elif defined(__FreeBSD__) || defined(__DragonFly__) #include =20 @@ -324,11 +331,13 @@ int cpu_signal_handler(int host_signum, void *pinfo, #define TRAP_sig(context) ((context)->uc_mcontext.mc_trapno) #define ERROR_sig(context) ((context)->uc_mcontext.mc_err) #define MASK_sig(context) ((context)->uc_sigmask) +#define PAGE_FAULT_TRAP T_PAGEFLT #else #define PC_sig(context) ((context)->uc_mcontext.gregs[REG_RIP]) #define TRAP_sig(context) ((context)->uc_mcontext.gregs[REG_TRAPNO]) #define ERROR_sig(context) ((context)->uc_mcontext.gregs[REG_ERR]) #define MASK_sig(context) ((context)->uc_sigmask) +#define PAGE_FAULT_TRAP 0xe #endif =20 int cpu_signal_handler(int host_signum, void *pinfo, @@ -346,7 +355,8 @@ int cpu_signal_handler(int host_signum, void *pinfo, =20 pc =3D PC_sig(uc); return handle_cpu_signal(pc, info, - TRAP_sig(uc) =3D=3D 0xe ? (ERROR_sig(uc) >> 1= ) & 1 : 0, + TRAP_sig(uc) =3D=3D PAGE_FAULT_TRAP ? + (ERROR_sig(uc) >> 1) & 1 : 0, &MASK_sig(uc)); } =20 --=20 2.25.1 From nobody Sat May 11 10:34:48 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620909190; cv=none; d=zohomail.com; s=zohoarc; b=RgKOk52df0bNUOK+uZb4CA6FHVOFikdNmApDEYc/oKs2pROlWlRXAAVP/AL/8n+aeH2+8jSryk4FBinVLB7M+4V/dPJ+zKJz+ZdzFAe7OKThp0ep9pgtEjo56f4iMsUxIVC/cX7itIOfza4VLFRF3NC1Wp3G5PLVXFuig70SxPY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620909190; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kFL9t5OD5k5npkYQzODZhaVeI1U1ot/HuEftF5u8qrE=; b=GR7w8FhZSFB+j5M9m6hWrRmtB1efkuPmx+VPUoCWHnBBi1AbGS1KqBKBmZZFrUQAeKecymk+cBOboJDH/x88DwuzUVwYjzCDLm39ouCuZvewOVk+FtOVgJauUhp+Fs5JE+uETsyYPNRhA4eMwbHT2TFt9blSI3q8UN32kItuZgI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 162090919007456.34362501716089; Thu, 13 May 2021 05:33:10 -0700 (PDT) Received: from localhost ([::1]:60376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhAWa-0000g3-2x for importer@patchew.org; Thu, 13 May 2021 08:33:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhAKA-00063F-Bf for qemu-devel@nongnu.org; Thu, 13 May 2021 08:20:20 -0400 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:45018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhAK7-0001I2-3M for qemu-devel@nongnu.org; Thu, 13 May 2021 08:20:18 -0400 Received: by mail-qk1-x72c.google.com with SMTP id a2so25207965qkh.11 for ; Thu, 13 May 2021 05:20:14 -0700 (PDT) Received: from localhost.localdomain (163.189-204-200.bestelclientes.com.mx. [189.204.200.163]) by smtp.gmail.com with ESMTPSA id b3sm847262qtg.55.2021.05.13.05.20.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 05:20:14 -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=XpxoNJX7OHbsr/jteGIygopw3Mu2MQVgWnJJ2iqxdCXXWApWdl+deN8uI/Y6qfQ97/ RNP+FASZl/XucgFHjmORk1batiCa0v0H0BfuluRBCO9nYbO9pFoiQYMLyzXaxRpHnAcS /id+rRrzPCLrtgX/RI+D9t9OQ2+4FtwI0/Z64CLt4/9AP+L7J6MeA5XVf+/zZem10bTL m7abie9cf5jWlhC35mLbiHuJ93P/VnspyBHL324OcLzsAOQDOBhQoOk31S2s3I722gXu HuAQhmrRdYnWaWrdNzPGGHGpXos/JKhVUu9ZR0qpQ6P633L/SoYoEP/S4raJzWVLh5Y4 8XLg== 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=e9FHWz2wOE3NKR9f9HDEAOlqpAS0vcp3popzGAE4AmkYVHcwOw4xp/ybd++skhNmDJ zNoW8Vg4TskPvhqqqX5ViByGCK8a5Wz8MCC6bIeYqF79UUUgblxQTDJVcxshymN3Pwr3 avl1lejB2uLS0rL+qffwH+0VsCdGAcQHfqC1eGjIkFLaprb5i/E5Jtusnk4d+EUmBPJm pxg2Hp5t963Z8o3/5ng1QAftjmJkfNcOR1wDvNACGY84H3ofslGOLcH9RRzobDc3YUqT 0kU9B3ecARczqXSmDzNIvmaVcMMOhh0xd3KXnw4cnjLK2S7AaawY1XsBuzCppMPPp4RY hsGQ== X-Gm-Message-State: AOAM5307deApOu23x/3fYyvcM68e0Ecvx0huhvVi5cYAdd1iY53d/IVn mLLnItZ0I0ItP4bcwVxq77ZKcM0Nasja87zzlSs= X-Google-Smtp-Source: ABdhPJyxRhfKGbN3Ct1ItOnKmK79UZsfcSdVZsH+J1YSxIqFooQP7KQDn7lMchJFdtSp3HiFmrReFQ== X-Received: by 2002:a37:ef17:: with SMTP id j23mr34117807qkk.392.1620908414259; Thu, 13 May 2021 05:20:14 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 4/4] tcg: Add tcg_constant_tl Date: Thu, 13 May 2021 07:20:08 -0500 Message-Id: <20210513122008.207491-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513122008.207491-1-richard.henderson@linaro.org> References: <20210513122008.207491-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::72c; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x72c.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, Matheus Ferst Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" 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, TCGAr= g 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, TCGAr= g 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 --=20 2.25.1