From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16587 invoked by alias); 15 Dec 2010 13:02:58 -0000 Received: (qmail 16576 invoked by uid 22791); 15 Dec 2010 13:02:58 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Dec 2010 13:02:53 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 050F01B403A; Wed, 15 Dec 2010 13:02:52 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: Re: [PATCH v3] gdb: bfin: new port Date: Wed, 15 Dec 2010 13:02:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.37-rc5; KDE/4.5.2; x86_64; ; ) Cc: Pedro Alves , toolchain-devel@blackfin.uclinux.org References: <1291886957-12003-1-git-send-email-vapier@gentoo.org> <201012142131.22802.pedro@codesourcery.com> <201012141700.14859.vapier@gentoo.org> In-Reply-To: <201012141700.14859.vapier@gentoo.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart12929880.SgF8DRWf9z"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201012150802.03234.vapier@gentoo.org> X-IsSubscribed: yes 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 X-SW-Source: 2010-12/txt/msg00296.txt.bz2 --nextPart12929880.SgF8DRWf9z Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-length: 1056 On Tuesday, December 14, 2010 17:00:13 Mike Frysinger wrote: > On Tuesday, December 14, 2010 16:31:22 Pedro Alves wrote: > > Can you explain why are the PC and CC registers pseudo > > registers, but supported as being raw registers anyway? Couldn't > > gdb compute them itself from the other registers, with > > gdb's pseudo register support (gdbarch_pseudo_register_read|write)? > > googling I found you mentioning that the "CC pseudo register can > > be deduced from the ASTAT register", though further googling doesn't > > find any mention of what ASTAT is. I'm sure there's a good reason, > > I'm probably just missing a comment somewhere. >=20 > CC is actually a single bit in the ASTAT (arithmetic status) register, but > often is treated as an actual register in much of the ISA. such as > assignments or logical tests. you can do " =3D CC" and "CC =3D ", > but you cant do this with any other ASTAT bit (like AZ, AN, etc...). another data point: gcc itself treats CC as a register. btw, the name is short for "Control Code" -mike --nextPart12929880.SgF8DRWf9z 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.16 (GNU/Linux) iQIcBAABAgAGBQJNCLxLAAoJEEFjO5/oN/WBA5cQAMdXCJ6bbFfbLOgqez77K0JB 6fDn5egHFpB6jMDKNSuyrCl4ayERbYNmnRGyP0f1l/w4GyTPQSNUaL7Q9D5x666J UVmRJO1+VOV7QvITegBmkYFdDqV3HMn0X5Q1amQqvYwnS28bJ3bm49bbTjO0f0na L1rLsaCEZ24rNMryineNOjpPmK98G5grSGCJZRkVBTXyx0O1M7y9KqToRy76q/iF m1fH15YPnWetJTQHSGIs2a5bOIRWCNu+evb3UTA/Kwkm55Is8sHsSt2YQWz2c2aH /3blFTrac5yLTAEDP+chQLYpOrRHKv2HhMDSUL20opAxWn2duufYfXt44zUsDWGL ZCYR9UvovKEO9kCA9Kkwa+o+qF+ldim9k34xSprLrvR7k+1wKfkyeIZ3xMke4NoT CbiSrQTl7e3vXN5MeDOcZgXf8TTmKx5ctLRnjb5/HFfiFTNSGCQgOwFyu1MiQWzp FQvuH93JsAC6YjlfqKusJZd+I9OmRtdhSi7Tj1sJIT1jIcoBGVKT7lHzzk26/N7p 7YU2hXmlQufBH0eXjswGL3DEKg1QVqbek6+KHdWv7rOpzkcSYrX3oLQ32ZhcSi+Q aDK9nClDKvWvVP3Ka5ie014mC8qz/wBlwa0U9BM3+/BaiVZXqjb7NlK9dXVbXaec uDi+ZKDeCJl8VLqAHKCf =Q8YE -----END PGP SIGNATURE----- --nextPart12929880.SgF8DRWf9z--