From mboxrd@z Thu Jan 1 00:00:00 1970 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=-17.3 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,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 7D031C4338F for ; Sun, 8 Aug 2021 05:19:40 +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 E2EE160560 for ; Sun, 8 Aug 2021 05:19:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E2EE160560 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:49640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCbDm-0001Du-Rn for qemu-devel@archiver.kernel.org; Sun, 08 Aug 2021 01:19:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCbCz-0008TH-JD for qemu-devel@nongnu.org; Sun, 08 Aug 2021 01:18:49 -0400 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]:45832) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCbCx-0003UR-Ud for qemu-devel@nongnu.org; Sun, 08 Aug 2021 01:18:49 -0400 Received: by mail-pj1-x1033.google.com with SMTP id m10-20020a17090a34cab0290176b52c60ddso24438265pjf.4 for ; Sat, 07 Aug 2021 22:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=czrXoOa0+Nue3JohDWFelagJwh9gC/eLyqFB01TWC/c=; b=cGTrb3s6/8H5jR09COtyazW5nNrnqw2+nHQr0ukBXFWhSvUcJ9G7XYaajdSAHmjVci LLn8E5wqGwZbI7BhuzSnUm50z0ewuCUT2C7PuVwY4boZ8zwHCui+gFSw+8ixEv4AyHFI t4RD6+mpnoPCqu6AI2zId+oNml7dLbu/Kn7lY6lm07Vqxw1wDNfqLa90x17yaNkNRYBl 0X7BmBRrRNJa+EWQWh1rLxvsDPJlageKycSUbhIS7js7/UO6nS/G/OBOeHf594PyXP7q 28kMtnQVX3p4EhjFmbDFeV6g/cXXtcYtwWbZxxTsE63dRJ9W6wPD+30GXvWlLkPfgJHw OTrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=czrXoOa0+Nue3JohDWFelagJwh9gC/eLyqFB01TWC/c=; b=XST+LzwAvVZPyW6wpA9iWmjrRAgAihRH2xNX+yEjK69ek/hd0HX2DBg6yte2XaEPkI LVecF8u2Lt4OZJaa+1OT4etogIcBUy13SLtoYOokncWIB4mlqeXHhwptecTWoBT8E/Sm pHnoTIahR28B24Hz/9shoEMcmlTCpBQ7dLSKixqma0R6Ga2vANFPTCVrEysqeRlJlQG7 Pg7raUvWTsLd2p7HLBwPsuI7k5w9yR1iGlTjqeW9H6cFRVa4Mj3rL+YMqLxruFLralFk H62pw1uHAkWrMBHvGbQXZeaEmQlH2todQK4//g+q4D0xwRChIzVkvU7FPA/dFlo2Yu8B tArQ== X-Gm-Message-State: AOAM533Fi5rj4RfExMT0rIMf1wvfCRrnawiiJNnAPLqQUmseIj9ENwWn JsYdrJccVyZAOS7hxfUEYde4PQ== X-Google-Smtp-Source: ABdhPJxl6PLHybnfYUvdfbGy7srAWLQcKx7z1tDV6vHARRK8DBXng4MFWo9SOnd0uxoqCV4LbgeiLw== X-Received: by 2002:a17:90a:e38b:: with SMTP id b11mr18630864pjz.70.1628399926464; Sat, 07 Aug 2021 22:18:46 -0700 (PDT) Received: from [192.168.6.169] (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id b2sm13740936pjh.18.2021.08.07.22.18.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 07 Aug 2021 22:18:46 -0700 (PDT) Subject: Re: [PATCH for 6.2 17/49] bsd-user: assume pthreads and support of __thread To: Warner Losh , qemu-devel@nongnu.org References: <20210807214242.82385-1-imp@bsdimp.com> <20210807214242.82385-18-imp@bsdimp.com> From: Richard Henderson Message-ID: Date: Sat, 7 Aug 2021 19:18:43 -1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210807214242.82385-18-imp@bsdimp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1033.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, NICE_REPLY_A=-0.001, 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: kevans@freebsd.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 8/7/21 11:42 AM, Warner Losh wrote: > All compilers for some time have supported this. Follow linux-user and > eliminate the #define THREAD and unconditionally insert __thread where > needed. > > Signed-off-by: Warner Losh > --- > bsd-user/main.c | 2 +- > bsd-user/qemu.h | 10 +--------- > 2 files changed, 2 insertions(+), 10 deletions(-) Reviewed-by: Richard Henderson r~