spr: Add translation from SPR to special GPR number
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 31 Oct 2019 01:09:14 +0000 (12:09 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Sat, 7 Dec 2019 04:30:36 +0000 (15:30 +1100)
commitafdd59350270e8d5d8e503321024a3d545ec3796
tree67fcafbfb5e22eaf90029154aae8ce08c8ace325
parent5a0458dec165d8d52f5b91b6f73c28b2768371ac
spr: Add translation from SPR to special GPR number

We will want to store some SPRs in the register file using
a set of "extra" registers. This provides a function for
doing the translation along with some SPR definitions.

This isn't used yet

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
common.vhdl