Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
[parent not found: <201304191348.39851.vapier@gentoo.org>]
* [patch, sim] Add isel instruction
@ 2013-04-19 19:02 Abid, Hafiz
  2013-04-30 12:02 ` Joel Brobecker
  0 siblings, 1 reply; 10+ messages in thread
From: Abid, Hafiz @ 2013-04-19 19:02 UTC (permalink / raw)
  To: vapier; +Cc: gdb-patches

Hi,
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?

Regards,
Abid

sim/ChangeLog:
2013-04-19  Nathan Froyd  <froydnj@codesourcery.com>

	* 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 @@  
void::function::invalid_zero_divide_operation:cpu *processor,  
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 = 0;
+	else         a = *rA;
+	if (CR & (1 << (31 - BF)))
+	  *rT = a;
+	else
+	  *rT = *rB;
+
+#
From gdb-patches-return-100695-listarch-gdb-patches=sources.redhat.com@sourceware.org Fri Apr 19 17:46:20 2013
Return-Path: <gdb-patches-return-100695-listarch-gdb-patches=sources.redhat.com@sourceware.org>
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: <gdb-patches.sourceware.org>
List-Subscribe: <mailto:gdb-patches-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-patches/>
List-Post: <mailto:gdb-patches@sourceware.org>
List-Help: <mailto:gdb-patches-help@sourceware.org>, <http://sourceware.org/ml/#faqs>
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 <vapier@gentoo.org>
To: "Abid, Hafiz" <hafiz_abid@mentor.com>, Nathan Froyd <froydnj@codesourcery.com>
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 that 
level.  the style looks OK i guess.

> sim/ChangeLog:
> 2013-04-19  Nathan Froyd  <froydnj@codesourcery.com>
> 
> 	* 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--


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-05-06 10:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <201304301309.48611.vapier@gentoo.org>
2013-05-03  7:26 ` [patch, sim] Add isel instruction Abid, Hafiz
2013-05-06 10:28   ` Joel Brobecker
     [not found] <201304191348.39851.vapier@gentoo.org>
2013-04-19 20:48 ` Abid, Hafiz
2013-04-20  7:37   ` Mike Frysinger
2013-04-19 19:02 Abid, Hafiz
2013-04-30 12:02 ` Joel Brobecker
2013-04-30 15:30   ` Joel Brobecker
2013-04-30 16:29   ` Abid, Hafiz
2013-04-30 16:30     ` Joel Brobecker
2013-04-30 17:12       ` Abid, Hafiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox