From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id dquTAHChrV/OWAAAWB0awg (envelope-from ) for ; Thu, 12 Nov 2020 15:56:16 -0500 Received: by simark.ca (Postfix, from userid 112) id EA3D11F08B; Thu, 12 Nov 2020 15:56:15 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 601BA1E552 for ; Thu, 12 Nov 2020 15:56:14 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 243DB39FF077; Thu, 12 Nov 2020 20:56:14 +0000 (GMT) Received: from server28.superhosting.bg (server28.superhosting.bg [217.174.156.11]) by sourceware.org (Postfix) with ESMTPS id 07ABA39FF077 for ; Thu, 12 Nov 2020 20:56:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 07ABA39FF077 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dinux.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dimitar@dinux.eu DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dinux.eu; s=default; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1ycT90J+4bR+RiMktrQzzlKhBxw0h8ysVnJhyi7hpic=; b=onU5Owru6Fi4kOzmGBDdmwzZpc nUTyXnOYeDz8FJ0VltRArhPoS6pkaY02zmSXQGmQ6UN16DKjxG+hfDb0Ioa6uqdp1EJLTMoUkpV+T B4LVJXbR/b9rJFpbosCUk8ezz4ovxe9Hn7/g70YTflcYSbDbxT9Fj6bKPsDL6XCOmBHavdTDpn94N EYZuYVpPZ2IHqXnb49IwRNIBZc1eZcxL1krZOhNkN0HvG/5UwABycSMFsYUSdYaldJLMWrraFJnUc kqEePRq6JTdaktMxCtHjuLbKjqacc8yjBy54c4VmUjHeW1oYmoYujZkjiSPbFWSN83EFz7VCilyZd esWR8/yw==; Received: from [95.87.234.74] (port=58994 helo=tpdeb.localnet) by server28.superhosting.bg with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kdJdT-000CJA-H2; Thu, 12 Nov 2020 22:56:07 +0200 From: Dimitar Dimitrov To: Andrew Burgess Subject: Re: [PATCH] sim: pru: Add support for LMBD instruction Date: Thu, 12 Nov 2020 22:56:03 +0200 Message-ID: <1725116.m7LmbdnNcp@tpdeb> In-Reply-To: <20201111210905.GL2729@embecosm.com> References: <20201110191106.6750-1-dimitar@dinux.eu> <20201111210905.GL2729@embecosm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server28.superhosting.bg X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dinux.eu X-Get-Message-Sender-Via: server28.superhosting.bg: authenticated_id: dimitar@dinux.eu X-Authenticated-Sender: server28.superhosting.bg: dimitar@dinux.eu X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On =D1=81=D1=80=D1=8F=D0=B4=D0=B0, 11 =D0=BD=D0=BE=D0=B5=D0=BC=D0=B2=D1=80= =D0=B8 2020 =D0=B3. 23:09:05 EET Andrew Burgess wrote: > * Dimitar Dimitrov [2020-11-10 21:11:06 +0200]: >=20 >=20 >=20 > > Binutils support for LMBD instruction was merged [1]. So add it also > > to simulator. > >=20 > > LMBD instruction does left-most-bit-detection. It returns 32 if > > the given bit value is not found in the provided word value. > >=20 > > [1] https://sourceware.org/pipermail/binutils/2020-October/113901.html > >=20 > > sim/pru/ChangeLog: > >=20 > > * pru.h (RS1SEL): New macro. > > (RS1_WIDTH): New macro. > > * pru.isa: Describe the LMBD instruction. > >=20 > > sim/testsuite/sim/pru/ChangeLog: > >=20 > > * lmbd.s: New test. >=20 > LGTM. Thanks for doing this. >=20 > Andrew Thank you. I pushed it as e57cf1f2cdf819946494becf282e47194aa6216d Regards, Dimitar