[POWERPC] cell: add shadow registers for pmd_reg
authorKevin Corry <kevcorry@us.ibm.com>
Tue, 24 Oct 2006 16:31:21 +0000 (18:31 +0200)
committerPaul Mackerras <paulus@samba.org>
Wed, 25 Oct 2006 04:20:21 +0000 (14:20 +1000)
commitbffd4927ba4377aa38be5450e20e0fecd2523fe3
treedcdb8bb69c631b85f084ce52ef101325b5054647
parent22b8c9f5baeb440a716ea760ff05290221565b4c
[POWERPC] cell: add shadow registers for pmd_reg

Many of the registers in the performance monitoring unit are write-only.
We need to save a "shadow" copy when we write to those registers so we
can retrieve the values if we need them later.

The new cbe_pmd_shadow_regs structure is added to the cbe_regs_map structure
so we have the appropriate per-node copies of these shadow values.

Signed-off-by: Kevin Corry <kevcorry@us.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/cbe_regs.c
arch/powerpc/platforms/cell/cbe_regs.h