Implement POWER7's CFAR in TCG
commit697ab892786d47008807a49f57b2fd86adfcd098
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 31 Aug 2011 15:45:10 +0000 (31 15:45 +0000)
committerAlexander Graf <agraf@suse.de>
Thu, 6 Oct 2011 07:48:04 +0000 (6 09:48 +0200)
treed64a416a4961237e980e9c5e3ab176adb95b44d8
parent2bd9543cd303d9f6cbd37b7466bb03543035156b
Implement POWER7's CFAR in TCG

This patch implements support for the CFAR SPR on POWER7 (Come From
Address Register), which snapshots the PC value at the time of a branch or
an rfid.  The latest powerpc-next kernel also catches it and can show it in
xmon or in the signal frames.

This works well enough to let recent kernels boot (which otherwise oops
on the CFAR access).  It hasn't been tested enough to be confident that the
CFAR values are actually accurate, but one thing at a time.

Signed-off-by: Ben Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/cpu.h
target-ppc/translate.c
target-ppc/translate_init.c