forked from cores/microwatt
spr: Cleanup decoding of SPR numbers
Use a function to obtain the integer number and use constants with the architected numbers. Replace std_match with a case statement. This also has the side effect of returning 0 instead of some random previous result on mfspr of an unknown SPR. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>jtag-port
parent
cff4b13a9b
commit
83a8bb0238
Loading…
Reference in New Issue