From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15131 invoked by alias); 19 Apr 2013 17:15:16 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 15119 invoked by uid 89); 19 Apr 2013 17:15:15 -0000 X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 19 Apr 2013 17:15:14 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1UTEu0-0005V8-Fl from Hafiz_Abid@mentor.com ; Fri, 19 Apr 2013 10:15:12 -0700 Received: from SVR-IES-FEM-02.mgc.mentorg.com ([137.202.0.106]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 19 Apr 2013 10:15:11 -0700 Received: from abidh-ubunto1104 (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server (TLS) id 14.2.247.3; Fri, 19 Apr 2013 18:15:10 +0100 Date: Fri, 19 Apr 2013 19:02:00 -0000 From: "Abid, Hafiz" Subject: [patch, sim] Add isel instruction To: CC: Message-ID: <1366391706.7941.1@abidh-ubunto1104> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; delsp=Yes; format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-SW-Source: 2013-04/txt/msg00620.txt.bz2 Hi, This patch adds support for isel instruction in the ppc simulator.=20=20 Tested manually by running a small assembly file through the simulator.=20= =20 Is this ok? Regards, Abid sim/ChangeLog: 2013-04-19 Nathan Froyd * ppc-instructions (isel): New instruction. diff --git a/sim/ppc/ppc-instructions b/sim/ppc/ppc-instructions index 1b8fd89..d76a765 100644 --- a/sim/ppc/ppc-instructions +++ b/sim/ppc/ppc-instructions @@ -3455,6 +3455,19 @@=20=20 void::function::invalid_zero_divide_operation:cpu *processor,=20=20 unsigned_word cia, PPC_INSN_MFCR(RT_BITMASK); # +# I.3.3.15 Fixed-Point Select +# + +0.31,6.RT,11.RA,16.RB,21.BF,26.15,31./:A::isel:Integer Select + unsigned_word a; + if (RA_is_0) a =3D 0; + else a =3D *rA; + if (CR & (1 << (31 - BF))) + *rT =3D a; + else + *rT =3D *rB; + +# >From gdb-patches-return-100695-listarch-gdb-patches=sources.redhat.com@sourceware.org Fri Apr 19 17:46:20 2013 Return-Path: Delivered-To: listarch-gdb-patches@sources.redhat.com Received: (qmail 7404 invoked by alias); 19 Apr 2013 17:46:20 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 7393 invoked by uid 89); 19 Apr 2013 17:46:20 -0000 X-Spam-SWARE-Status: No, score=-9.4 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 19 Apr 2013 17:46:19 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id F3F3133DECE; Fri, 19 Apr 2013 17:46:17 +0000 (UTC) From: Mike Frysinger To: "Abid, Hafiz" , Nathan Froyd Subject: Re: [patch, sim] Add isel instruction Date: Fri, 19 Apr 2013 19:44:00 -0000 User-Agent: KMail/1.13.7 (Linux/3.8.3; KDE/4.6.5; x86_64; ; ) Cc: gdb-patches@sourceware.org References: <1366391706.7941.1@abidh-ubunto1104> In-Reply-To: <1366391706.7941.1@abidh-ubunto1104> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4646959.Ud0x7NujcZ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201304191348.39851.vapier@gentoo.org> X-Virus-Found: No X-SW-Source: 2013-04/txt/msg00621.txt.bz2 --nextPart4646959.Ud0x7NujcZ Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 522 On Friday 19 April 2013 13:15:06 Abid, Hafiz wrote: > This patch adds support for isel instruction in the ppc simulator. > Tested manually by running a small assembly file through the simulator. > Is this ok? i don't really know anything about the ppc ISA, so i can't vet changes on t= hat=20 level. the style looks OK i guess. > sim/ChangeLog: > 2013-04-19 Nathan Froyd >=20 > * ppc-instructions (isel): New instruction. erm, so you didn't write this patch, but Nathan Froyd did ? -mike --nextPart4646959.Ud0x7NujcZ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJRcYN3AAoJEEFjO5/oN/WBKFkP/jLqdlmNUnFnGj2+jFA9PTmn EpBFcLIbftrdyvR95iaiGZHIzTLhMVKuCn/sqbYoGplvZy+SWSn5HuEidYFQiAs/ E9x0ndHbL+PtqoU4/nfUGYbHePtGjyJo7w71esy81NrbMnA7Jh6d8HLgda7x5/uK McfFYr3JJiyUSnlpoh2URbPNvz4V8gCJ5Yj8V+NEOHsxC48DfFVxKYfJ4xcyGWEt TvhpLW7oE8SBJxKC884iWk8M8lAL76DN6o1Phk39HcXPFqFKIhebU6pCRrCIzToG zQOEKcxxe7zCvFKEbsvJELALSFTJ5SfWOvVPt7fecSL8UVuE4SPk2jRlHXcLq7go H177W1Xt8ffDSfAOzIdBsOM1k6f7GfSYk5oT6AN61ipPdR9D2quLxeSHZdJVa9DN Rfn+3a8bx7ejbJP/c5iRbtVTQJA10+G2dMa9qv5aE6vxgx2fl/aEm6TE7Rve9kqN sfqG/PaHDmoQLdgk3F9MMpnGhSf7Ki9k9R4p9t9PBVuyLByEOILla+cVbu47gyHR YiW2oIGF7VZIXtDTeB4fSiLhxu2tRInDYmP0FT5sY9ID3n1V44fGtJnC807x6TEe 2odRPQlLizqE4QJSYSKIQkUDytc4jXFzBXOVoOg2Sic85bsrYDjlhev6Bubx3aS/ coB6iz10gUsKqSHckRpu =ScF1 -----END PGP SIGNATURE----- --nextPart4646959.Ud0x7NujcZ--