On Jan 23, 2018, at 4:53 PM, Segher Boessenkool <segher@kernel.crashing.org> wrote:

\ This assumes we run after hard reset; if not, more work is needed.

\ l2cr@ ( -- x )  mfspr x,1017
\ l2cr~ ( x -- )  mtspr 1017,x

hex

: init-L2-7447A
 40200000 l2cr!  \ enable L2 parity, initiate invalidate
 BEGIN l2cr@ 00200000 and 0= UNTIL  \ wait for invalidate done
 c0200000 l2cr! ;  \ enable L2


Ok, I’m not sure how to use this?