From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5WuD-00077t-1U for qemu-devel@nongnu.org; Mon, 19 Sep 2011 02:00:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5WuB-0005P8-3z for qemu-devel@nongnu.org; Mon, 19 Sep 2011 02:00:37 -0400 Date: Mon, 19 Sep 2011 16:00:23 +1000 From: David Gibson Message-ID: <20110919060023.GD15001@yookeroo.fritz.box> References: <1315989802-18753-1-git-send-email-agraf@suse.de> <1315989802-18753-48-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH 47/58] Implement POWER7's CFAR in TCG List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-ppc@nongnu.org, Alexander Graf , qemu-devel Developers On Sat, Sep 17, 2011 at 05:08:29PM +0000, Blue Swirl wrote: > On Wed, Sep 14, 2011 at 8:43 AM, Alexander Graf wrote: > > From: David Gibson > > > > This patch implements support for the CFAR SPR on POWER7 (Come From > > Address Register), which snapshots the PC value at the time of a bran= ch or > > an rfid. =A0The latest powerpc-next kernel also catches it and can sh= ow it in > > xmon or in the signal frames. > > > > This works well enough to let recent kernels boot (which otherwise oo= ps > > on the CFAR access). =A0It hasn't been tested enough to be confident = that the > > CFAR values are actually accurate, but one thing at a time. >=20 > This looks accurate at least for the cases covered. >=20 > A higher performance implementation could be to only update the > register lazily when the SPR is read, in most other times CFAR would > be only stored to DisasContext. Uh, yeah. I think I'll leave that to someone who actually understands TCG, rather than just bluffing it. --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other= _ | _way_ _around_! http://www.ozlabs.org/~dgibson