Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp869101pxy; Wed, 28 Apr 2021 16:07:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDQVCOXp76YUEBaR0fV69pGR+Haeb0ptjri9740KNpq/GGaYMHRx3L3FWzAiAEL7giRRMa X-Received: by 2002:aa7:9190:0:b029:22d:6789:cc83 with SMTP id x16-20020aa791900000b029022d6789cc83mr30895046pfa.9.1619651279458; Wed, 28 Apr 2021 16:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619651279; cv=none; d=google.com; s=arc-20160816; b=M4djHal9giEdNNYfJQhGTijv8c5TByzEKFbyl/93KfWAZzH/5Gpz6XtQt870Ojev/I iLOJ/zPfNcIYKGiaVrwEf+F573nLiOKQiJj2X6Y995z5Oa0KTakQTV/odtEJjbQbQFYa Kb5Hfd0nhsDpfi7b7OYBWcRfRwEphzqVLVfaDgGrUttLJQesgVG/xi/5Pv6+oo/GCgfZ qRVF6iVMlj0qSiry69jAikAH29K7Fiiv1OI3BFpcoWek+sw45NmoL49RTqOmlTmN0xqv AST+IXb+DsY1ToHQYcpQFsu0RoencguoOwM40So9y25kznxmkntXcisNqAsV5qyu9OSG O3TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=9qLoG8GhVsaODXvAxNVSdW8lGghLvmtsq9pFbRDh42Y=; b=SeLAykdCXeOhxKdZVV34QuRaYKXjrI69x3qOKVhoTuzs5y9fazN5fXcBcpX5OGpQLN E9PL3qCJo8hMHC/noEyVwnoIVGNPgovwNYbxBqomPLrFsurnRFDxf5yDlaARGkXv7j6C Wfp7/Mpa+gFLdcdWMgqWSUovsx+BS/eCusq541ENT/pKMv2bkOlCqS9MXrG0BdHco7Wj xj/I/6MZrEC8OfKlPPNT8LmkKnJwuuseNwi5CG5X4G15M6n6s2U4lEXrduMgKqV8WT/5 gA+zVcGwhOz1qOQj2PvOnwPo6PY7XqxAQQI2eCWkt5NK7GFf4IBcBKRx5M00rdXc9KeB 0uIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TDZzd9Yj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m8si1103587pgb.315.2021.04.28.16.07.47; Wed, 28 Apr 2021 16:07:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TDZzd9Yj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230502AbhD1XH2 (ORCPT + 99 others); Wed, 28 Apr 2021 19:07:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbhD1XHZ (ORCPT ); Wed, 28 Apr 2021 19:07:25 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B0A8C06138B; Wed, 28 Apr 2021 16:06:39 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id i12so33869195qke.3; Wed, 28 Apr 2021 16:06:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=9qLoG8GhVsaODXvAxNVSdW8lGghLvmtsq9pFbRDh42Y=; b=TDZzd9Yjn7zwOBAE6kqvkUuPXbahUd+wVeSFZKpWbKob9fl3wAJ1WJT8p4BGmnMUK/ DuJ3P1fGBC08Jw+LZwhm+xfSjdPlfsmvxQvQuBj0399jIdirjmH5Q03qVy8G1VOVOR7e x+vWDHkzR7HRTU0Cs5c9Oz0pVn31wfPsKtsl5akMO//OBs3Gu+hSPMeH2f9XIdV7to6c NPO1MW9vE8WwwZ6C0OQOn7NHVG0s6a345neSRiErDR22MWcZUrL9IxCku2/RRZ/WZxJX PFP/MuNqi9PEq5PLw2kCn6xW6s7eVR7IQq5F7JLlBilwKShwJSTAqPLknTAnXJyh2Or9 NF4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=9qLoG8GhVsaODXvAxNVSdW8lGghLvmtsq9pFbRDh42Y=; b=bM5sn9SXhe1fUW43RNrpOTodekqbNNrDn5GLDm28oGXokjfMVgtjmn39qNlxNud8hB 1HMNtRsWPvHnjwr/iQ8waSr5Pyn8w54vF5lp09Ssb3auECBfxL6bhxfDHKY8ZpSgtLHM 7/D6GuNU7hgQnzJ/5lQBMgZV7b1crSKcPHJlZagyW/RSQkH3VDZBfNnR6SlLFqmjEHXt 4/D5XGd/vrIsdLLJERDb4jw3Ntxc/z+p9TSgsA/ygHxX8mD2A4lBElnD33hgWMj1ji1D P6vxroxFtCK4C6gZTMVcO6QnLOjS4i5tsM1BFoTiOvW4LUFPMRl1mAPbfEpfa2jjLcGA AISQ== X-Gm-Message-State: AOAM5304ecwhvqrB+hM3uy++5YMHyRK4f6w32fCyq6iXCpqta9u92y4f ElgLDbI1B8eQyeTUQpA7O0U= X-Received: by 2002:a05:620a:232:: with SMTP id u18mr8411245qkm.213.1619651198317; Wed, 28 Apr 2021 16:06:38 -0700 (PDT) Received: from ?IPv6:2601:152:4100:57e0:91c9:b195:c9a6:94c1? ([2601:152:4100:57e0:91c9:b195:c9a6:94c1]) by smtp.gmail.com with ESMTPSA id h62sm891040qkf.116.2021.04.28.16.06.36 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Apr 2021 16:06:37 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [PATCH 2/2] m68k: introduce a virtual m68k machine From: Josh Juran In-Reply-To: Date: Wed, 28 Apr 2021 19:06:10 -0400 Cc: Laurent Vivier , Linux Kernel Mailing List , linux-m68k , linux-rtc@vger.kernel.org, Alessandro Zummo , Alexandre Belloni Content-Transfer-Encoding: 7bit Message-Id: References: <20210323221430.3735147-1-laurent@vivier.eu> <20210323221430.3735147-3-laurent@vivier.eu> To: Geert Uytterhoeven X-Mailer: Apple Mail (2.1878.6) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Apr 28, 2021, at 8:04 AM, Geert Uytterhoeven wrote: > This can be simplified by shifting irq_pending instead of irq_bit: > > do { > if (irq_pending & 1) > generic_handle_irq(irq_num); > > ++irq_num; > irq_pending >>= 1; > } while (irq_pending); > > Unfortunately m68k doesn't have a single-instruction __ffs(). The 68000 and 68010 don't, but couldn't the 68020's BFFFO do the job? Josh