ppc: Set up SLBs for ppc64
commitc8f8732e426e6ebb64158fc45dec239c83f48eea
authorafaerber <afaerber@f158a5a8-5612-0410-a976-696ce0be7e32>
Sun, 21 Nov 2010 21:53:54 +0000 (21 21:53 +0000)
committerafaerber <afaerber@f158a5a8-5612-0410-a976-696ce0be7e32>
Sun, 21 Nov 2010 21:53:54 +0000 (21 21:53 +0000)
treee7f8b8ac08fa472545947f51841d904081d03c79
parentf6231551b93f6ffbf98fd90564c511f31a011a87
ppc: Set up SLBs for ppc64

Set up SLBs with slbmte instead of mtsrin, suggested by Alex.

v3:
* Continue to use mtmsrin on ppc for simplicity.
* Add comment on slbia, suggested by Segher.
* Add inline functions {slbia,slbmte}, requested by Alex.
* Add inline function mfpvr before Alex asks for it. :)

v2:
* Don't initialize 64 SLBs, then invalidate them, as in IBM's application note
  for the 970. Use slbia instead, recommended by Alex.
* Conditionalize when to use SLB or SR.

Cc: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
git-svn-id: svn://openbios.org/openbios/trunk/openbios-devel@966 f158a5a8-5612-0410-a976-696ce0be7e32
arch/ppc/qemu/ofmem.c
include/arch/ppc/processor.h